permission_alerts.py 562 B

123456789101112131415161718192021
  1. from typing import TYPE_CHECKING, List, Optional
  2. from yandex_music import YandexMusicModel
  3. from yandex_music.utils import model
  4. if TYPE_CHECKING:
  5. from yandex_music import ClientType
  6. @model
  7. class PermissionAlerts(YandexMusicModel):
  8. """Класс, представляющий оповещения.
  9. Attributes:
  10. alerts (:obj:`list` из :obj:`str`): Список оповещений.
  11. client (:obj:`yandex_music.Client`, optional): Клиент Yandex Music.
  12. """
  13. alerts: List[str]
  14. client: Optional['ClientType'] = None