mirror of
https://github.com/beetbox/beets.git
synced 2026-02-12 10:22:13 +01:00
Ensure _resolve returns list, add type hint
Prevents potential type erros when handing over to _to_delimited_genre_string.
This commit is contained in:
parent
d358a24ed9
commit
f698f21a28
1 changed files with 2 additions and 2 deletions
|
|
@ -202,11 +202,11 @@ class LastGenrePlugin(plugins.BeetsPlugin):
|
|||
depth_tag_pairs.sort(reverse=True)
|
||||
return [p[1] for p in depth_tag_pairs]
|
||||
|
||||
def _resolve_genres(self, tags):
|
||||
def _resolve_genres(self, tags) -> list:
|
||||
"""Given a list of genre strings, filters, dedups, sorts and
|
||||
canonicalizes."""
|
||||
if not tags:
|
||||
return None
|
||||
return []
|
||||
|
||||
count = self.config["count"].get(int)
|
||||
if self.canonicalize:
|
||||
|
|
|
|||
Loading…
Reference in a new issue