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.
sqlmodel/_compat.py
1 parent 8703539 commit e7c62fcCopy full SHA for e7c62fc
sqlmodel/_compat.py
@@ -194,7 +194,7 @@ def get_type_from_field(field: Any) -> Any:
194
# Non optional unions are not allowed
195
if bases[0] is not NoneType and bases[1] is not NoneType:
196
raise ValueError(
197
- "Cannot have a (non-optional) union as a SQLlchemy field"
+ "Cannot have a (non-optional) union as a SQLAlchemy field"
198
)
199
# Optional unions are allowed
200
return bases[0] if bases[0] is not NoneType else bases[1]
0 commit comments