Skip to content

Commit b56fa37

Browse files
committed
annotate origin as Any to avoid type issues
1 parent 5896004 commit b56fa37

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
@@ -602,7 +602,7 @@ def __init__(
602602
setattr(cls, rel_name, rel_info.sa_relationship) # Fix #315
603603
continue
604604
raw_ann = cls.__annotations__[rel_name]
605-
origin = get_origin(raw_ann)
605+
origin: Any = get_origin(raw_ann)
606606
if origin is Mapped:
607607
ann = raw_ann.__args__[0]
608608
else:

0 commit comments

Comments
 (0)