From 3cbed95c0891848b8ff2c93289a51b8c200eaf7d Mon Sep 17 00:00:00 2001 From: Miwory Date: Tue, 14 Apr 2026 23:24:50 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D1=81=D1=85=D0=B5?= =?UTF-8?q?=D0=BC=D1=8B=20=D0=BD=D0=B5=D0=B4=D0=B0=D0=B2=D0=BD=D0=B8=D1=85?= =?UTF-8?q?=20=D1=82=D1=80=D0=B5=D0=BA=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 2 +- src/oxidespotify/schema.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 984063a..1eadf8d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "oxidespotify" -version = "1.0.1" +version = "1.0.2" description = "Client for Spotify API" readme = "README.md" authors = [{ name = "Miwory", email = "miwory.uwu@gmail.com" }] diff --git a/src/oxidespotify/schema.py b/src/oxidespotify/schema.py index b62b387..bee3e07 100644 --- a/src/oxidespotify/schema.py +++ b/src/oxidespotify/schema.py @@ -93,8 +93,8 @@ class Paginated(BaseModel): limit: int next: HttpUrl | None offset: int = 0 - previous: HttpUrl | None - total: int + previous: HttpUrl | None = None + total: int = 0 class ExternalUrls(BaseModel): @@ -308,7 +308,7 @@ class Devices(BaseModel): class RecentlyPlayedTrack(BaseModel): track: Track played_at: datetime - context: Context + context: Context | None = None class RecentlyPlayedTracks(Paginated): @@ -344,7 +344,7 @@ class PlaylistTracks(Paginated): class SimplifiedPlaylistTracks(Paginated): href: HttpUrl - total: int + total: int = 0 class Playlist(BaseModel): -- 2.47.2