Skip to content

Commit 4bcd5b9

Browse files
committed
rewrite | into Optional
1 parent 00b8646 commit 4bcd5b9

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
@@ -67,7 +67,7 @@ def _is_union_type(t: Any) -> bool:
6767

6868
def get_literal_annotation_info(
6969
annotation: Any,
70-
) -> tuple[type[Any], tuple[Any, ...]] | None:
70+
) -> Optional[tuple[type[Any], tuple[Any, ...]]]:
7171
if annotation is None or get_origin(annotation) is None:
7272
return None
7373
origin = get_origin(annotation)

0 commit comments

Comments
 (0)