diff --git a/beets/dbcore/db.py b/beets/dbcore/db.py index fda163988..8635dd1c1 100755 --- a/beets/dbcore/db.py +++ b/beets/dbcore/db.py @@ -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. """