✏️ Fix typo in sqlmodel/_compat.py
(#950)
This commit is contained in:
parent
8703539bf0
commit
e7c62fc9d9
@ -194,7 +194,7 @@ if IS_PYDANTIC_V2:
|
||||
# Non optional unions are not allowed
|
||||
if bases[0] is not NoneType and bases[1] is not NoneType:
|
||||
raise ValueError(
|
||||
"Cannot have a (non-optional) union as a SQLlchemy field"
|
||||
"Cannot have a (non-optional) union as a SQLAlchemy field"
|
||||
)
|
||||
# Optional unions are allowed
|
||||
return bases[0] if bases[0] is not NoneType else bases[1]
|
||||
|
Loading…
x
Reference in New Issue
Block a user