Skip to content

Commit 63abd0a

Browse files
mavwolverinespazm
authored andcommitted
add: support mapped_column with sa_column
1 parent 0e281d5 commit 63abd0a

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
@@ -703,7 +703,7 @@ def get_sqlalchemy_type(field: Any) -> Any:
703703
raise ValueError(f"{type_} has no matching SQLAlchemy type")
704704

705705

706-
def get_column_from_field(field: Any) -> Column | MappedColumn: # type: ignore
706+
def get_column_from_field(field: Any) -> Union[Column, MappedColumn]: # type: ignore
707707
if IS_PYDANTIC_V2:
708708
field_info = field
709709
else:

0 commit comments

Comments
 (0)