From: Anderson T Date: Tue, 4 Jun 2024 23:56:52 +0000 (-0700) Subject: ✏️ Fix typo in `sqlmodel/_compat.py` (#950) X-Git-Tag: 0.0.20~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7c62fc9d9c1ab3287c6ee06c742f96ed299a7f0;p=thirdparty%2Ffastapi%2Fsqlmodel.git ✏️ Fix typo in `sqlmodel/_compat.py` (#950) --- diff --git a/sqlmodel/_compat.py b/sqlmodel/_compat.py index d42a6242..4018d1bb 100644 --- a/sqlmodel/_compat.py +++ b/sqlmodel/_compat.py @@ -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]