We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43fba36 commit 115d439Copy full SHA for 115d439
sqlmodel/_compat.py
@@ -185,8 +185,8 @@ def get_type_from_field(field: Any) -> Any:
185
"Cannot have a (non-optional) union as a SQLlchemy field"
186
)
187
# Optional unions are allowed
188
- return bases[0] if bases[0] is not NoneType else bases[1] # type: ignore[no-any-return]
189
- return origin # type: ignore[no-any-return]
+ return bases[0] if bases[0] is not NoneType else bases[1]
+ return origin
190
191
def get_field_metadata(field: Any) -> Any:
192
for meta in field.metadata:
0 commit comments