Skip to content

Commit 83629f6

Browse files
authored
Suppress type errors
Linter doesn't understand the special call handling for this case.
1 parent 083e804 commit 83629f6

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
@@ -588,7 +588,7 @@ def get_config(name: str) -> Any:
588588
def __init__(
589589
cls, classname: str, bases: Tuple[type, ...], dict_: Dict[str, Any], **kw: Any
590590
) -> None:
591-
return cls.__do_init__(bases, dict_, kw)
591+
return cls.__do_init__(bases, dict_, kw) # type: ignore
592592

593593
def sqlmodel_rebuild(cls) -> None:
594594
reg = cls._sa_registry
@@ -598,7 +598,7 @@ def sqlmodel_rebuild(cls) -> None:
598598
reg._dispose_manager_and_mapper(m)
599599
del reg._managers[m]
600600

601-
return cls.__do_init__(cls.__bases__, cls.__dict__, {})
601+
return cls.__do_init__(cls.__bases__, cls.__dict__, {}) # type: ignore
602602

603603
# Override SQLAlchemy, allow both SQLAlchemy and plain Pydantic models
604604
def __do_init__(

0 commit comments

Comments
 (0)