type.py 363 B

1234567891011121314151617181920212223242526
  1. from dataclasses import dataclass
  2. @dataclass
  3. class Album:
  4. title: str
  5. cover: str | None
  6. artist: str
  7. id: str
  8. url: str
  9. release: str
  10. track_urls: dict[str, int]
  11. @dataclass
  12. class Track:
  13. title: str
  14. cover: str | None
  15. artist: str
  16. id: str
  17. url: str
  18. lyrics: str
  19. release: str
  20. number: int
  21. album: Album | None