Skip to content

Commit

Permalink
Исправлен тип поля items_uri в классе Cover (#603)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rirusha authored Jun 13, 2023
1 parent 1e45831 commit 84deae4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion tests/test_cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
class TestCover:
type = 'pic'
uri = 'avatars.yandex.net/get-music-user-playlist/38125/q0ahkhfQE3neTk/%%?1572609906461'
items_uri = None
items_uri = [
'avatars.yandex.net/get-music-user-playlist/38125/q0ahkhfQE3neTk/%%?1572609906461',
'avatars.yandex.net/get-music-user-playlist/38125/q0ahkhfQE3neTk/%%?1572609906461',
]
dir = '/get-music-user-playlist/34120/pvg900XixWaHcr/'
version = '1572609906461'
custom = True
Expand Down
4 changes: 2 additions & 2 deletions yandex_music/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Cover(YandexMusicObject):
Attributes:
type (:obj:`str`, optional): Тип обложки.
uri (:obj:`str`, optional): Ссылка на изображение.
items_uri (:obj:`str`, optional): Список ссылок на изображения.
items_uri (:obj:`list` из :obj:`str`, optional): Список ссылок на изображения.
dir (:obj:`str`, optional): Директория хранения изображения на сервере.
version (:obj:`str`, optional): Версия.
is_custom (:obj:`bool`, optional): Является ли обложка пользовательской.
Expand All @@ -28,7 +28,7 @@ class Cover(YandexMusicObject):

type: Optional[str] = None
uri: Optional[str] = None
items_uri: Optional[str] = None
items_uri: Optional[List[str]] = None
dir: Optional[str] = None
version: Optional[str] = None
custom: Optional[bool] = None
Expand Down

0 comments on commit 84deae4

Please sign in to comment.