Skip to content

Commit

Permalink
Suppress type errors
Browse files Browse the repository at this point in the history
Linter doesn't understand the special call handling for this case.
  • Loading branch information
adsharma authored Feb 26, 2025
1 parent 083e804 commit 83629f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sqlmodel/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ def get_config(name: str) -> Any:
def __init__(
cls, classname: str, bases: Tuple[type, ...], dict_: Dict[str, Any], **kw: Any
) -> None:
return cls.__do_init__(bases, dict_, kw)
return cls.__do_init__(bases, dict_, kw) # type: ignore

def sqlmodel_rebuild(cls) -> None:
reg = cls._sa_registry
Expand All @@ -598,7 +598,7 @@ def sqlmodel_rebuild(cls) -> None:
reg._dispose_manager_and_mapper(m)
del reg._managers[m]

return cls.__do_init__(cls.__bases__, cls.__dict__, {})
return cls.__do_init__(cls.__bases__, cls.__dict__, {}) # type: ignore

# Override SQLAlchemy, allow both SQLAlchemy and plain Pydantic models
def __do_init__(
Expand Down

0 comments on commit 83629f6

Please sign in to comment.