Skip to content

Commit d1ad4ce

Browse files
committed
Try to fix mypy
1 parent fc210a3 commit d1ad4ce

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
@@ -598,11 +598,11 @@ def sqlmodel_rebuild(cls) -> None:
598598
reg._dispose_manager_and_mapper(m)
599599
del reg._managers[m]
600600

601-
return cls.__do_init__(cls.name, cls.__bases__, cls.__dict__)
601+
return cls.__do_init__(cls.__name__, cls.__bases__, cls.__dict__)
602602

603603
# Override SQLAlchemy, allow both SQLAlchemy and plain Pydantic models
604604
def __do_init__(
605-
cls, classname: str, bases: Tuple[type, ...], dict_: Dict[str, Any], **kw: Any
605+
cls, classname: str, bases: Tuple[type, ...], dict_: Mapping[str, Any], **kw: Any
606606
) -> None:
607607
# Only one of the base classes (or the current one) should be a table model
608608
# this allows FastAPI cloning a SQLModel for the response_model without

0 commit comments

Comments
 (0)