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 277953a commit 4aade03Copy full SHA for 4aade03
sqlmodel/main.py
@@ -732,7 +732,7 @@ def get_sqlalchemy_type(field: Any) -> Any:
732
raise ValueError(f"{type_} has no matching SQLAlchemy type")
733
734
735
-def get_column_from_field(field: Any) -> Column | MappedColumn: # type: ignore
+def get_column_from_field(field: Any) -> Union[Column, MappedColumn]: # type: ignore
736
if IS_PYDANTIC_V2:
737
field_info = field
738
else:
0 commit comments