Skip to content

Commit b7a6495

Browse files
committed
📝 Update _is_new_type_instance to handle Python 3.10 compatibility
1 parent daadf43 commit b7a6495

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
@@ -210,7 +210,7 @@ def _is_typing_type_instance(annotation: Any, type_name: str) -> bool:
210210
return bool(check_type) and isinstance(annotation, tuple(check_type))
211211

212212
def _is_new_type_instance(annotation: Any) -> bool:
213-
if sys.version_info >= (3, 10):
213+
if sys.version_info > (3, 10):
214214
return _is_typing_type_instance(annotation, "NewType")
215215
else:
216216
return hasattr(annotation, "__supertype__")

0 commit comments

Comments
 (0)