Fixed lint error introduced by merging main.

This commit is contained in:
Sebastian Mohr 2025-04-15 11:57:52 +02:00
parent f878e4da3e
commit 90254bb511

View file

@ -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.