Skip to content

Commit 4aade03

Browse files
author
John Lyu
committed
fix type hint for <3.10
1 parent 277953a commit 4aade03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlmodel/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ def get_sqlalchemy_type(field: Any) -> Any:
732732
raise ValueError(f"{type_} has no matching SQLAlchemy type")
733733

734734

735-
def get_column_from_field(field: Any) -> Column | MappedColumn: # type: ignore
735+
def get_column_from_field(field: Any) -> Union[Column, MappedColumn]: # type: ignore
736736
if IS_PYDANTIC_V2:
737737
field_info = field
738738
else:

0 commit comments

Comments
 (0)