This commit is contained in:
Benjamin Schaaf
2022-01-02 20:40:07 +11:00
parent 87d32ddc7f
commit 5c4a29e6ae
16 changed files with 604 additions and 545 deletions

View File

@@ -81,9 +81,9 @@ class AlbumSearchQuery:
:class:`AlbumSearchQuery.Type.GENRE`) return albums of the given genre
"""
class _Genre(Genre):
def __init__(self, name: str):
self.name = name
@dataclass
class Genre:
name: str
class Type(Enum):
"""
@@ -116,7 +116,7 @@ class AlbumSearchQuery:
type: Type
year_range: Tuple[int, int] = this_decade()
genre: Genre = _Genre("Rock")
genre: Genre = Genre("Rock")
_strhash: Optional[str] = None