Skip to content

Commit fc81dc8

Browse files
committed
Use Optional
1 parent 4151cbe commit fc81dc8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

beetsplug/mbpseudo.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"""Adds pseudo-releases from MusicBrainz as candidates during import."""
1616

1717
import itertools
18-
from typing import Any, Iterable, Sequence
18+
from typing import Any, Iterable, Optional, Sequence
1919

2020
from typing_extensions import override
2121

@@ -101,7 +101,7 @@ def _has_desired_script(self, release: JSONDict) -> bool:
101101
def _wanted_pseudo_release_id(
102102
self,
103103
relation: JSONDict,
104-
) -> str | None:
104+
) -> Optional[str]:
105105
if (
106106
len(self._scripts) == 0
107107
or relation.get("type", "") != "transl-tracklisting"
@@ -355,10 +355,10 @@ def album_distance(
355355

356356
return super().album_distance(items, album_info, mapping)
357357

358-
def album_for_id(self, album_id: str) -> AlbumInfo | None:
358+
def album_for_id(self, album_id: str) -> Optional[AlbumInfo]:
359359
pass
360360

361-
def track_for_id(self, track_id: str) -> TrackInfo | None:
361+
def track_for_id(self, track_id: str) -> Optional[TrackInfo]:
362362
pass
363363

364364
def item_candidates(

0 commit comments

Comments
 (0)