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 510e421 commit 9068badCopy full SHA for 9068bad
sqlmodel/main.py
@@ -666,7 +666,7 @@ def get_sqlalchemy_type(field: Any) -> Any:
666
return AutoString
667
# Check enums first as an enum can also be a str, needed by Pydantic/FastAPI
668
if issubclass(type_, Enum):
669
- return sa_Enum(type_)
+ return sa_Enum(cast(Type[Enum], type_))
670
if issubclass(
671
type_,
672
(
0 commit comments