Skip to content

Commit adbd50b

Browse files
committed
Move distance to a separate module
1 parent 01b6ea7 commit adbd50b

File tree

10 files changed

+1028
-1024
lines changed

10 files changed

+1028
-1024
lines changed

beets/autotag/__init__.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,26 @@
1414

1515
"""Facilities for automatically determining files' correct metadata."""
1616

17-
from collections.abc import Mapping, Sequence
18-
from typing import Union
17+
from __future__ import annotations
18+
19+
from typing import TYPE_CHECKING, Union
1920

2021
from beets import config, logging
21-
from beets.library import Album, Item, LibModel
2222

2323
# Parts of external interface.
2424
from beets.util import unique_list
2525

26-
from .hooks import AlbumInfo, AlbumMatch, Distance, TrackInfo, TrackMatch
26+
from .hooks import AlbumInfo, AlbumMatch, TrackInfo, TrackMatch
2727
from .match import Proposal, Recommendation, tag_album, tag_item
2828

29+
if TYPE_CHECKING:
30+
from collections.abc import Mapping, Sequence
31+
32+
from beets.library import Album, Item, LibModel
33+
2934
__all__ = [
3035
"AlbumInfo",
3136
"AlbumMatch",
32-
"Distance",
3337
"TrackInfo",
3438
"TrackMatch",
3539
"Proposal",

0 commit comments

Comments
 (0)