Skip to content

Commit 9f356db

Browse files
committed
Use Optional instead of |
1 parent c5d7df8 commit 9f356db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlmodel/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ def Relationship(
482482
return relationship_info
483483

484484

485-
def get_annotated_relationshipinfo(t: Type) -> RelationshipInfo | None:
485+
def get_annotated_relationshipinfo(t: Type) -> Optional[RelationshipInfo]:
486486
"""Get the first RelationshipInfo from Annotated or None if not Annotated with RelationshipInfo."""
487487
if get_origin(t) is not Annotated:
488488
return None

0 commit comments

Comments
 (0)