Track is apparently optional

This commit is contained in:
Bradlee Speice 2021-10-11 10:44:08 -04:00
parent 9daf2cc2a0
commit 3daa89ed6d

View File

@ -1,7 +1,7 @@
"""
Classes designed to manage playlist
"""
from typing import Any, Dict, List
from typing import Any, Dict, List, Optional
from pydantic import BaseModel, Field
@ -19,7 +19,7 @@ class PlaylistTrack(BaseModel):
added_at: str
added_by: PublicUser
is_local: bool
track: SimplifiedTrack
track: Optional[SimplifiedTrack]
class SimplifiedPlaylist(BaseModel):