]> git.ipfire.org Git - thirdparty/fastapi/sqlmodel.git/commitdiff
✏️ Fix typo in `sqlmodel/_compat.py` (#950)
authorAnderson T <tseng.andersonn@gmail.com>
Tue, 4 Jun 2024 23:56:52 +0000 (16:56 -0700)
committerGitHub <noreply@github.com>
Tue, 4 Jun 2024 23:56:52 +0000 (18:56 -0500)
sqlmodel/_compat.py

index d42a62429e69ffbf853b5a3b8a53c80e63af9825..4018d1bb396eb1d963b6951ed20317f09c1b6dcc 100644 (file)
@@ -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]