Skip to content

Commit

Permalink
Use Any instead of type[Any]
Browse files Browse the repository at this point in the history
  • Loading branch information
bolu61 committed Oct 29, 2024
1 parent 33604b4 commit 2534099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlmodel/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ def Relationship(
return relationship_info


def get_annotated_relationshipinfo(t: type[Any]) -> Optional[RelationshipInfo]:
def get_annotated_relationshipinfo(t: Any) -> Optional[RelationshipInfo]:
"""Get the first RelationshipInfo from Annotated or None if not Annotated with RelationshipInfo."""
if get_origin(t) is not Annotated:
return None
Expand Down

0 comments on commit 2534099

Please sign in to comment.