File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ def is_field_noneable(field: "FieldInfo") -> bool:
165
165
return False
166
166
return False
167
167
168
- def get_type_from_field (field : Any ) -> type :
168
+ def get_type_from_field (field : Any ) -> Any :
169
169
type_ : Any = field .annotation
170
170
# Resolve Optional fields
171
171
if type_ is None :
@@ -429,7 +429,7 @@ def is_field_noneable(field: "FieldInfo") -> bool:
429
429
)
430
430
return field .allow_none # type: ignore[no-any-return, attr-defined]
431
431
432
- def get_type_from_field (field : Any ) -> type :
432
+ def get_type_from_field (field : Any ) -> Any :
433
433
if isinstance (field .type_ , type ) and field .shape == SHAPE_SINGLETON :
434
434
return field .type_
435
435
raise ValueError (f"The field { field .name } has no matching SQLAlchemy type" )
You can’t perform that action at this time.
0 commit comments