From 9c309517377fae273363a73cedeaf12c2318a30d Mon Sep 17 00:00:00 2001 From: Anderson T Date: Tue, 28 May 2024 05:24:11 -0700 Subject: [PATCH] Typo in error message --- sqlmodel/_compat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlmodel/_compat.py b/sqlmodel/_compat.py index 72ec8330fd..ae47b33adb 100644 --- a/sqlmodel/_compat.py +++ b/sqlmodel/_compat.py @@ -193,7 +193,7 @@ def get_type_from_field(field: Any) -> Any: # 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]