From 2a09dcb6f966303bfb31e594e7d568b32e7e12dd Mon Sep 17 00:00:00 2001 From: Ninnjah <45268461+Ninnjah@users.noreply.github.com> Date: Wed, 30 Oct 2024 18:35:11 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=BB=D0=B5=20uri=20=D0=BA=D0=BB=D0=B0=D1=81=D1=81=D0=B0?= =?UTF-8?q?=20Description=20=D0=BE=D0=BF=D1=86=D0=B8=D0=BE=D0=BD=D0=B0?= =?UTF-8?q?=D0=BB=D1=8C=D0=BD=D1=8B=D0=BC=20(#661)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_description.py | 3 +-- yandex_music/artist/description.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/test_description.py b/tests/test_description.py index fd5e5238..1c3c5862 100644 --- a/tests/test_description.py +++ b/tests/test_description.py @@ -17,11 +17,10 @@ def test_de_json_none(self, client): assert Description.de_json({}, client) is None def test_de_json_required(self, client): - json_dict = {'text': self.text, 'uri': self.uri} + json_dict = {'text': self.text} description = Description.de_json(json_dict, client) assert description.text == self.text - assert description.uri == self.uri def test_de_json_all(self, client): json_dict = {'text': self.text, 'uri': self.uri} diff --git a/yandex_music/artist/description.py b/yandex_music/artist/description.py index dbdc7540..71e6f291 100644 --- a/yandex_music/artist/description.py +++ b/yandex_music/artist/description.py @@ -17,12 +17,12 @@ class Description(YandexMusicModel): Attributes: text (:obj:`str`): Описание исполнителя. - uri (:obj:`str`): Ссылка на источник. + uri (:obj:`str`, optional): Ссылка на источник. client (:obj:`yandex_music.Client`, optional): Клиент Yandex Music. """ text: str - uri: str + uri: Optional[str] = None client: Optional['ClientType'] = None def __post_init__(self) -> None: