mirror of
https://github.com/beetbox/beets.git
synced 2026-02-10 17:34:05 +01:00
dbcore/db: slightly refine typing
This commit is contained in:
parent
8b11b3ef2e
commit
82a748a31d
1 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue