significant refactor/cleanup

This commit is contained in:
2025-02-11 20:01:07 -05:00
parent 2c368aaf1a
commit 88d870ce8f
12 changed files with 440 additions and 467 deletions

View File

@@ -47,7 +47,7 @@ class LastFM:
'err': 'Failed'
}
async def get_track_info(self, artist=None, track=None):
async def get_track_info(self, artist=None, track=None) -> dict:
"""Get Track Info from LastFM"""
try:
if artist is None or track is None:
@@ -74,7 +74,7 @@ class LastFM:
'err': 'General Failure'
}
async def get_album_tracklist(self, artist=None, album=None):
async def get_album_tracklist(self, artist=None, album=None) -> dict:
"""Get Album Tracklist"""
try:
if artist is None or album is None:
@@ -98,7 +98,7 @@ class LastFM:
'err': 'General Failure'
}
async def get_artist_albums(self, artist=None):
async def get_artist_albums(self, artist=None) -> dict|list[dict]:
"""Get Artists Albums from LastFM"""
try:
if artist is None: