mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-07-29 15:13:46 +00:00
14 lines
291 B
Python
14 lines
291 B
Python
from dataclasses import dataclass
|
|
|
|
|
|
@dataclass
|
|
class SimilarArtist:
|
|
artisthash: str
|
|
similar_artist_hashes: str
|
|
|
|
def get_artist_hash_set(self) -> set[str]:
|
|
"""
|
|
Returns a set of similar artists.
|
|
"""
|
|
return set(self.similar_artist_hashes.split("~"))
|