[GH-ISSUE #1118] API Reference Refers to Deprecated Methods #665

Closed
opened 2026-02-28 00:00:40 +03:00 by kerem · 2 comments
Owner

Originally created by @bartokay on GitHub (May 25, 2024).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/1118

Example:
https://spotipy.readthedocs.io/en/2.22.1/#spotipy.client.Spotify.artist_albums

artist_albums(artist_id, album_type=None, country=None, limit=20, offset=0)

The docs reference album_type, which has been deprecated and replaced with include_groups. This is noted in client.py, but include_groups is not mentioned in the docs at all.

This is just one example - I noticed similar inconsistencies with some other methods in client.py that have DeprecationWarnings. While some updated methods are documented, the deprecated versions should either be marked as deprecated in the docs or removed entirely.

Originally created by @bartokay on GitHub (May 25, 2024). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/1118 Example: https://spotipy.readthedocs.io/en/2.22.1/#spotipy.client.Spotify.artist_albums ```artist_albums(artist_id, album_type=None, country=None, limit=20, offset=0)``` The docs reference ```album_type```, which has been deprecated and replaced with ```include_groups```. This is noted in ```client.py```, but ```include_groups``` is not mentioned in the docs at all. This is just one example - I noticed similar inconsistencies with some other methods in ```client.py``` that have DeprecationWarnings. While some updated methods are documented, the deprecated versions should either be marked as deprecated in the docs or removed entirely.
kerem 2026-02-28 00:00:40 +03:00
Author
Owner

@dieser-niko commented on GitHub (May 27, 2024):

Docs weren't updating correctly. We're already working on a solution to prevent this from happening in the future.

<!-- gh-comment-id:2133750204 --> @dieser-niko commented on GitHub (May 27, 2024): Docs weren't updating correctly. We're already working on a solution to prevent this from happening in the future.
Author
Owner

@dieser-niko commented on GitHub (May 30, 2024):

We have released a new version. The documentation should now also match the code. Here's a new link to the mentioned function: https://spotipy.readthedocs.io/en/2.24.0/#spotipy.client.Spotify.artist_albums

I'm closing the issue now, as I assume this has been resolved. You can of course reopen it if I missed something.

<!-- gh-comment-id:2140905211 --> @dieser-niko commented on GitHub (May 30, 2024): We have released a new version. The documentation should now also match the code. Here's a new link to the mentioned function: https://spotipy.readthedocs.io/en/2.24.0/#spotipy.client.Spotify.artist_albums I'm closing the issue now, as I assume this has been resolved. You can of course reopen it if I missed something.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#665
No description provided.