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 c5d7df8 commit 9f356dbCopy full SHA for 9f356db
sqlmodel/main.py
@@ -482,7 +482,7 @@ def Relationship(
482
return relationship_info
483
484
485
-def get_annotated_relationshipinfo(t: Type) -> RelationshipInfo | None:
+def get_annotated_relationshipinfo(t: Type) -> Optional[RelationshipInfo]:
486
"""Get the first RelationshipInfo from Annotated or None if not Annotated with RelationshipInfo."""
487
if get_origin(t) is not Annotated:
488
return None
0 commit comments