Skip to content

Commit 33604b4

Browse files
committed
Fix type annotation
1 parent 9f356db commit 33604b4

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) -> Optional[RelationshipInfo]:
485+
def get_annotated_relationshipinfo(t: type[Any]) -> 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)