Fix mypy incompatible return type in lastgenre

This commit is contained in:
dunkla 2026-01-11 14:09:17 +01:00 committed by Šarūnas Nejus
parent e68f1e6c31
commit 351332bca5
No known key found for this signature in database

View file

@ -368,7 +368,9 @@ class LastGenrePlugin(plugins.BeetsPlugin):
and the whitelist feature was disabled.
"""
def _try_resolve_stage(stage_label: str, keep_genres, new_genres):
def _try_resolve_stage(
stage_label: str, keep_genres: list[str], new_genres: list[str]
) -> tuple[list[str], str] | None:
"""Try to resolve genres for a given stage and log the result."""
resolved_genres = self._combine_resolve_and_log(
keep_genres, new_genres