Skip to content

Commit 115d439

Browse files
committed
🎨 Fix type ignores after fixing type annotations
1 parent 43fba36 commit 115d439

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sqlmodel/_compat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ def get_type_from_field(field: Any) -> Any:
185185
"Cannot have a (non-optional) union as a SQLlchemy field"
186186
)
187187
# 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]
188+
return bases[0] if bases[0] is not NoneType else bases[1]
189+
return origin
190190

191191
def get_field_metadata(field: Any) -> Any:
192192
for meta in field.metadata:

0 commit comments

Comments
 (0)