Remove a duplicate PlaylistTrack object

This commit is contained in:
Bradlee Speice 2021-09-13 22:33:00 -04:00
parent c49f201835
commit 4896be77e0

View File

@ -1,13 +1,11 @@
""" """
Classes designed to manage track-like objects Classes designed to manage track-like objects
""" """
from datetime import datetime
from typing import Dict, List, Optional, Union from typing import Dict, List, Optional, Union
from pydantic import BaseModel, Field from pydantic import BaseModel, Field
from .album import SearchAlbum from .album import SearchAlbum
from .user import PublicUser
class SimplifiedTrack(BaseModel): class SimplifiedTrack(BaseModel):
@ -46,15 +44,3 @@ class Track(SimplifiedTrack):
album: SearchAlbum album: SearchAlbum
external_ids: Dict[str, str] external_ids: Dict[str, str]
popularity: int popularity: int
class PlaylistTrack(BaseModel):
"""
Track as returned from a playlist
"""
added_at: datetime
added_by: PublicUser
is_local: bool
primary_color: Optional[str]
track: Track