WIP
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user