We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00b8646 commit 4bcd5b9Copy full SHA for 4bcd5b9
sqlmodel/_compat.py
@@ -67,7 +67,7 @@ def _is_union_type(t: Any) -> bool:
67
68
def get_literal_annotation_info(
69
annotation: Any,
70
-) -> tuple[type[Any], tuple[Any, ...]] | None:
+) -> Optional[tuple[type[Any], tuple[Any, ...]]]:
71
if annotation is None or get_origin(annotation) is None:
72
return None
73
origin = get_origin(annotation)
0 commit comments