Skip to content

Commit

Permalink
Apply type hint suggestions from review
Browse files Browse the repository at this point in the history
Co-authored-by: Šarūnas Nejus <[email protected]>
  • Loading branch information
JOJ0 and snejus authored Jan 11, 2025
1 parent 94fbb8e commit 7894776
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions beetsplug/lastgenre/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def __init__(self):
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()
Expand Down Expand Up @@ -179,7 +179,7 @@ def sources(self):

# 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()
Expand Down

0 comments on commit 7894776

Please sign in to comment.