Skip to content

Commit e7c62fc

Browse files
authored
✏️ Fix typo in sqlmodel/_compat.py (#950)
1 parent 8703539 commit e7c62fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlmodel/_compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def get_type_from_field(field: Any) -> Any:
194194
# Non optional unions are not allowed
195195
if bases[0] is not NoneType and bases[1] is not NoneType:
196196
raise ValueError(
197-
"Cannot have a (non-optional) union as a SQLlchemy field"
197+
"Cannot have a (non-optional) union as a SQLAlchemy field"
198198
)
199199
# Optional unions are allowed
200200
return bases[0] if bases[0] is not NoneType else bases[1]

0 commit comments

Comments
 (0)