From 90254bb511c36acf15df0923c3b028cdab4b0462 Mon Sep 17 00:00:00 2001 From: Sebastian Mohr Date: Tue, 15 Apr 2025 11:57:52 +0200 Subject: [PATCH] Fixed lint error introduced by merging main. --- beets/plugins.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/beets/plugins.py b/beets/plugins.py index 823bebf41..bf7b6db31 100644 --- a/beets/plugins.py +++ b/beets/plugins.py @@ -28,7 +28,6 @@ from typing import ( Callable, Generic, Sequence, - Type, TypedDict, TypeVar, ) @@ -37,6 +36,7 @@ import mediafile import beets from beets import logging +from beets.library import Album, Item, Library if TYPE_CHECKING: from collections.abc import Iterable @@ -45,7 +45,6 @@ if TYPE_CHECKING: from beets.autotag import AlbumInfo, Distance, TrackInfo from beets.dbcore import Query - from beets.library import Album, Item, Library from beets.ui import Subcommand @@ -350,7 +349,6 @@ def load_plugins(names: Sequence[str] = ()): ) - _instances: dict[type[BeetsPlugin], BeetsPlugin] = {} @@ -468,7 +466,6 @@ def item_candidates(item: Item, artist: str, title: str) -> Iterable[TrackInfo]: yield from plugin.item_candidates(item, artist, title) - def album_for_id(_id: str) -> AlbumInfo | None: """Get AlbumInfo object for the given ID string.