From ef760feada7845eb641cdbb784c7cb97ba9a67ee Mon Sep 17 00:00:00 2001 From: Serene-Arc Date: Mon, 13 Feb 2023 13:51:40 +1000 Subject: [PATCH] Fix style errors --- beets/autotag/hooks.py | 3 ++- beets/autotag/mb.py | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/beets/autotag/hooks.py b/beets/autotag/hooks.py index 95f5eee7b..e122bf660 100644 --- a/beets/autotag/hooks.py +++ b/beets/autotag/hooks.py @@ -17,7 +17,7 @@ from collections import namedtuple from functools import total_ordering import re -from typing import Dict, List, Tuple, Iterator, Union, NewType, Any, Optional, \ +from typing import Dict, List, Tuple, Iterator, Union, NewType, Any, Optional,\ Iterable, Callable, TypeVar from beets import logging @@ -41,6 +41,7 @@ except AttributeError: T = TypeVar('T') + # Classes used to represent candidate options. class AttrDict(dict): """A dictionary that supports attribute ("dot") access, so `d.field` diff --git a/beets/autotag/mb.py b/beets/autotag/mb.py index 77e585c2b..328805d0a 100644 --- a/beets/autotag/mb.py +++ b/beets/autotag/mb.py @@ -14,8 +14,7 @@ """Searches for albums in the MusicBrainz database. """ -from typing import List, Tuple, Dict, Optional, Iterator, Iterable, AnyStr, \ - Union +from typing import List, Tuple, Dict, Optional, Iterator import musicbrainzngs import re