yandex_music.genre.title

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

Bases: YandexMusicModel

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

title

Заголовок.

Type:

str

full_title

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

Type:

str, optional

client

Клиент Yandex Music.

Type:

yandex_music.Client, optional

client: ClientType | None = None
classmethod de_dict(data: JSONType, client: ClientType) Dict[str, Title]

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

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

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

Returns:

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

Return type:

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

full_title: str | None = None
title: str