File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 15
15
"""Adds pseudo-releases from MusicBrainz as candidates during import."""
16
16
17
17
import itertools
18
- from typing import Any , Iterable , Sequence
18
+ from typing import Any , Iterable , Optional , Sequence
19
19
20
20
from typing_extensions import override
21
21
@@ -101,7 +101,7 @@ def _has_desired_script(self, release: JSONDict) -> bool:
101
101
def _wanted_pseudo_release_id (
102
102
self ,
103
103
relation : JSONDict ,
104
- ) -> str | None :
104
+ ) -> Optional [ str ] :
105
105
if (
106
106
len (self ._scripts ) == 0
107
107
or relation .get ("type" , "" ) != "transl-tracklisting"
@@ -355,10 +355,10 @@ def album_distance(
355
355
356
356
return super ().album_distance (items , album_info , mapping )
357
357
358
- def album_for_id (self , album_id : str ) -> AlbumInfo | None :
358
+ def album_for_id (self , album_id : str ) -> Optional [ AlbumInfo ] :
359
359
pass
360
360
361
- def track_for_id (self , track_id : str ) -> TrackInfo | None :
361
+ def track_for_id (self , track_id : str ) -> Optional [ TrackInfo ] :
362
362
pass
363
363
364
364
def item_candidates (
You can’t perform that action at this time.
0 commit comments