mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 08:05:55 +03:00
[PR #701] Add basic type annotations #1002
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#1002
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/spotipy-dev/spotipy/pull/701
Author: @akathorn
Created: 7/1/2021
Status: 🔄 Open
Base:
v3_oldprsonly← Head:basic-typing📝 Commits (10+)
49e42f9Add representation for JSON return values0047299Add typing_extensions as dependencya6804afAnnotate util.py and exceptions.py24416a3Partly annotate client.py6fdfc57Annotate cache_handler.py6eabb04Small anotation in scope.pyc60a562Annotate all arguments in client.pycc90ddaAnnotate most of oauth2.py public api61ce06cA big pass over client.py95e4859Annotate all return types in client.py📊 Changes
8 files changed (+264 additions, -208 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
setup.py(+1 -0)📝
spotipy/cache_handler.py(+28 -11)📝
spotipy/client.py(+162 -133)📝
spotipy/exceptions.py(+5 -1)📝
spotipy/oauth2.py(+62 -59)📝
spotipy/scope.py(+2 -2)📝
spotipy/util.py(+3 -2)📄 Description
All parameters for public methods are annotated.
Methods that return a JSON are annotated with a return type of
Dict[str, Any], which is quite limited.This is part of #439.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.