Track is apparently optional
This commit is contained in:
parent
9daf2cc2a0
commit
3daa89ed6d
@ -1,7 +1,7 @@
|
|||||||
"""
|
"""
|
||||||
Classes designed to manage playlist
|
Classes designed to manage playlist
|
||||||
"""
|
"""
|
||||||
from typing import Any, Dict, List
|
from typing import Any, Dict, List, Optional
|
||||||
|
|
||||||
from pydantic import BaseModel, Field
|
from pydantic import BaseModel, Field
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ class PlaylistTrack(BaseModel):
|
|||||||
added_at: str
|
added_at: str
|
||||||
added_by: PublicUser
|
added_by: PublicUser
|
||||||
is_local: bool
|
is_local: bool
|
||||||
track: SimplifiedTrack
|
track: Optional[SimplifiedTrack]
|
||||||
|
|
||||||
|
|
||||||
class SimplifiedPlaylist(BaseModel):
|
class SimplifiedPlaylist(BaseModel):
|
||||||
|
Loading…
Reference in New Issue
Block a user