Finished fixing all flake8 typing errors

This commit is contained in:
Sumner Evans
2020-03-06 08:02:43 -07:00
parent 4b02083a5a
commit 4f559e346d
8 changed files with 166 additions and 114 deletions

View File

@@ -840,7 +840,7 @@ class Server:
"""
return self.do_download(self._make_url('download'), id=id)
def get_cover_art(self, id: str, size: int = 1000):
def get_cover_art(self, id: str, size: int = 1000) -> bytes:
"""
Returns the cover art image in binary form.
@@ -850,7 +850,7 @@ class Server:
return self.do_download(
self._make_url('getCoverArt'), id=id, size=size)
def get_cover_art_url(self, id: str, size: int = 1000):
def get_cover_art_url(self, id: str, size: int = 1000) -> str:
"""
Returns the URL of the cover art image.