yandex_music.genre.title#

class yandex_music.genre.title.Title(title: str, full_title: str | None = None, client: Client | None = None)#

Bases: YandexMusicObject

Класс, представляющий заголовок жанра.

title#

Заголовок.

Type:

str

full_title#

Полный заголовок.

Type:

str, optional

client#

Клиент Yandex Music.

Type:

yandex_music.Client, optional

client: Client | None = None#
classmethod de_dict(data: dict, client: Client) Dict[str, Title | None]#

Десериализация списка объектов.

Parameters:
  • data (dict) – Словарь с полями и значениями десериализуемого объекта.

  • client (yandex_music.Client, optional) – Клиент Yandex Music.

Returns:

Заголовки жанров.

Return type:

dict где ключ это язык str, а значение yandex_music.Title

classmethod de_json(data: dict, client: Client) Title | None#

Десериализация объекта.

Parameters:
  • data (dict) – Поля и значения десериализуемого объекта.

  • client (yandex_music.Client, optional) – Клиент Yandex Music.

Returns:

Заголовок жанра.

Return type:

yandex_music.Title

full_title: str | None = None#
title: str#