diff --git a/src/spotifyaio/models.py b/src/spotifyaio/models.py index 802217e6..c13ecd6f 100644 --- a/src/spotifyaio/models.py +++ b/src/spotifyaio/models.py @@ -404,7 +404,7 @@ def __pre_deserialize__(cls, d: dict[str, Any]) -> dict[str, Any]: class PlaylistTrack(DataClassORJSONMixin): """PlaylistTrack model.""" - track: Annotated[Item, Discriminator(field="type", include_subtypes=True)] | None + track: Annotated[Item, Discriminator(field="type", include_subtypes=True)] @dataclass