From 08b197efa8e961d298492e578b61f35b739b7ed9 Mon Sep 17 00:00:00 2001 From: Marshal Date: Tue, 24 Dec 2019 09:07:39 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D1=82=D0=B0=D0=B9=D0=BF=D0=B8=D0=BD=D0=B3=20?= =?UTF-8?q?=D0=B2=20=D0=BA=D0=BB=D0=B0=D1=81=D1=81=D0=B5=20Client=20#120?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yandex_music/client.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/yandex_music/client.py b/yandex_music/client.py index f0e6025..b7ee040 100644 --- a/yandex_music/client.py +++ b/yandex_music/client.py @@ -1074,7 +1074,7 @@ class Client(YandexMusicObject): timeout: Union[int, float] = None, *args, **kwargs) -> bool: return self._like_action('album', album_ids, True, user_id, timeout, *args, **kwargs) - def _get_list(self, object_type: str, ids: Union[List[Union[str, int], int, str]], + def _get_list(self, object_type: str, ids: Union[List[Union[str, int]], int, str], params: dict = None, timeout: Union[int, float] = None, *args, **kwargs) -> List[Union[Artist, Album, Track, Playlist]]: if params is None: @@ -1088,22 +1088,22 @@ class Client(YandexMusicObject): return de_list.get(object_type)(result, self) @log - def artists(self, artist_ids: Union[List[Union[str, int], int, str]], timeout: Union[int, float] = None, + def artists(self, artist_ids: Union[List[Union[str, int]], int, str], timeout: Union[int, float] = None, *args, **kwargs) -> List[Artist]: return self._get_list('artist', artist_ids, timeout=timeout, *args, **kwargs) @log - def albums(self, album_ids: Union[List[Union[str, int], int, str]], timeout: Union[int, float] = None, + def albums(self, album_ids: Union[List[Union[str, int]], int, str], timeout: Union[int, float] = None, *args, **kwargs) -> List[Album]: return self._get_list('album', album_ids, timeout=timeout, *args, **kwargs) @log - def tracks(self, track_ids: Union[List[Union[str, int], int, str]], with_positions: bool = True, + def tracks(self, track_ids: Union[List[Union[str, int]], int, str], with_positions: bool = True, timeout: Union[int, float] = None, *args, **kwargs) -> List[Track]: return self._get_list('track', track_ids, {'with-positions': with_positions}, timeout, *args, **kwargs) @log - def playlists_list(self, playlist_ids: Union[List[Union[str, int], int, str]], timeout: Union[int, float] = None, + def playlists_list(self, playlist_ids: Union[List[Union[str, int]], int, str], timeout: Union[int, float] = None, *args, **kwargs) -> List[Playlist]: return self._get_list('playlist', playlist_ids, timeout=timeout, *args, **kwargs)