Skip to content

Commit

Permalink
Исправление тайпхинта в классе LandingList (#644)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyashkin committed May 12, 2024
1 parent 91ab096 commit 98cf497
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yandex_music/landing/landing_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from yandex_music.utils import model

if TYPE_CHECKING:
from yandex_music import Client
from yandex_music import Client, PlaylistId


@model
Expand All @@ -22,7 +22,7 @@ class LandingList(YandexMusicObject):
title (:obj:`str`): Заголовок страницы.
id (:obj:`str`, optional): Уникальный идентификатор списка.
new_releases (:obj:`list` из :obj:`int`, optional): Новые альбомы.
new_playlists (:obj:`list` из :obj:`int`, optional): Новые плейлисты.
new_playlists (:obj:`list` из :obj:`PlaylistId`, optional): Новые плейлисты.
podcasts (:obj:`list` из :obj:`int`, optional): Подкасты.
client (:obj:`yandex_music.Client`, optional): Клиент Yandex Music.
"""
Expand All @@ -32,7 +32,7 @@ class LandingList(YandexMusicObject):
title: str
id: Optional[str] = None
new_releases: List[int] = None
new_playlists: List[int] = None
new_playlists: List['PlaylistId'] = None
podcasts: List[int] = None
client: Optional['Client'] = None

Expand Down

0 comments on commit 98cf497

Please sign in to comment.