mirror of
https://github.com/beetbox/beets.git
synced 2025-12-24 17:43:52 +01:00
Apply type hint suggestions from review
Co-authored-by: Šarūnas Nejus <snejus@protonmail.com>
This commit is contained in:
parent
6b41743b91
commit
593f5460b6
1 changed files with 2 additions and 2 deletions
|
|
@ -113,7 +113,7 @@ class LastGenrePlugin(plugins.BeetsPlugin):
|
|||
self.config_validation()
|
||||
self.setup()
|
||||
|
||||
def config_validation(self):
|
||||
def config_validation(self) -> None:
|
||||
"""Quits plugin when invalid configurations are detected."""
|
||||
keep_existing = self.config["keep_existing"].get()
|
||||
force = self.config["force"].get()
|
||||
|
|
@ -179,7 +179,7 @@ class LastGenrePlugin(plugins.BeetsPlugin):
|
|||
|
||||
# More canonicalization and general helpers.
|
||||
|
||||
def _to_delimited_genre_string(self, tags):
|
||||
def _to_delimited_genre_string(self, tags: list[str]) -> str:
|
||||
"""Reduce tags list to configured count, format and return as delimited
|
||||
string."""
|
||||
separator = self.config["separator"].as_str()
|
||||
|
|
|
|||
Loading…
Reference in a new issue