Skip to content

Commit 95574c6

Browse files
committed
Rename annotations to backup_annotations to avoid name collision
1 parent 85331af commit 95574c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sqlmodel/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,8 +563,8 @@ def __new__(
563563
}
564564
new_cls = super().__new__(cls, name, bases, dict_used, **config_kwargs)
565565
# Restore base annotations
566-
for base, annotations in backup_base_annotations.items():
567-
base.__annotations__ = annotations
566+
for base, backup_annotations in backup_base_annotations.items():
567+
base.__annotations__ = backup_annotations
568568
new_cls.__annotations__ = {
569569
**relationship_annotations,
570570
**pydantic_annotations,

0 commit comments

Comments
 (0)