dbcore/db: slightly refine typing

This commit is contained in:
wisp3rwind 2023-07-26 13:26:26 +02:00
parent 8b11b3ef2e
commit 82a748a31d

View file

@ -1260,9 +1260,9 @@ class Database:
def _get(
self,
model_cls: Type[Model],
model_cls: Type[AnyModel],
id,
) -> Optional[Model]:
) -> Optional[AnyModel]:
"""Get a Model object by its id or None if the id does not
exist.
"""