mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 08:05:55 +03:00
[PR #1153] [MERGED] Add type annotations to cache_handler.py #1187
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#1187
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/1153
Author: @JackDyre
Created: 8/9/2024
Status: ✅ Merged
Merged: 1/18/2025
Merged by: @stephanebruckert
Base:
v3← Head:type-annotations📝 Commits (10+)
e4d2815Typed cache_handler.CacheHander + implemented ABC2cd627cfixed code style33b5812Typed cache_handler.CacheFileHandler2f6096breverted some refactoring changese4ba2b5attempting to reimplement some refactoring changes6814ab1rolling back, this makes no sense to me80a60b0code style174c4ecsmh it was only linting, tests were fine68a5399Switched to typed dict for cache type6b1d7dacallsopen()📊 Changes
2 files changed (+79 additions, -67 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
spotipy/cache_handler.py(+78 -67)📄 Description
Implementing type annotations in cache_handler.py
I will create separate PRs for each file I type to make the review process easier and to allow it to be merged in slowly.
Currently only the base CacheHandler class has been typed.
Temporary files generated by rye like the pyproject.toml and lockfiles(my preferred python management tool) will be removed when I finish this PR.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.