Skip to content

Commit fcb2da3

Browse files
authored
🐛 Fix type of __sqlmodel_relationships__ (#1996)
1 parent 46abf3f commit fcb2da3

2 files changed

Lines changed: 22 additions & 22 deletions

File tree

sqlmodel/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ class SQLModel(BaseModel, metaclass=SQLModelMetaclass, registry=default_registry
805805
# SQLAlchemy needs to set weakref(s), Pydantic will set the other slots values
806806
__slots__ = ("__weakref__",)
807807
__tablename__: ClassVar[str | Callable[..., str]]
808-
__sqlmodel_relationships__: ClassVar[builtins.dict[str, RelationshipProperty[Any]]]
808+
__sqlmodel_relationships__: ClassVar[builtins.dict[str, RelationshipInfo]]
809809
__name__: ClassVar[str]
810810
metadata: ClassVar[MetaData]
811811
__allow_unmapped__ = True # https://docs.sqlalchemy.org/en/20/changelog/migration_20.html#migration-20-step-six

uv.lock

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)