Skip to content

Commit 5d1bf5c

Browse files
author
John Lyu
committed
support python < 3.9
1 parent b1ed8c3 commit 5d1bf5c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sqlmodel/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,8 +550,9 @@ def __new__(
550550
# thus pydantic will use the value of the attribute as the default value
551551
base_annotations.update(dict_used["__annotations__"])
552552
dict_used["__annotations__"] = base_annotations
553+
base_fields.update(dict_used)
553554
new_cls = super().__new__(
554-
cls, name, bases, base_fields | dict_used, **config_kwargs
555+
cls, name, bases, base_fields, **config_kwargs
555556
)
556557
new_cls.__annotations__ = {
557558
**relationship_annotations,

0 commit comments

Comments
 (0)