fix type hint for <3.10
This commit is contained in:
parent
277953a614
commit
4aade03081
@ -732,7 +732,7 @@ def get_sqlalchemy_type(field: Any) -> Any:
|
||||
raise ValueError(f"{type_} has no matching SQLAlchemy type")
|
||||
|
||||
|
||||
def get_column_from_field(field: Any) -> Column | MappedColumn: # type: ignore
|
||||
def get_column_from_field(field: Any) -> Union[Column, MappedColumn]: # type: ignore
|
||||
if IS_PYDANTIC_V2:
|
||||
field_info = field
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user