Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add type annotations to cache_handler.py #1153

Merged
merged 20 commits into from
Jan 18, 2025

Conversation

JackDyre
Copy link
Contributor

@JackDyre JackDyre commented Aug 9, 2024

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.

JackDyre added 15 commits August 9, 2024 13:50
- Added typed to cache_handler.CacheHandler
- Implemented cache_handler.CacheHandler as an ABC

- Added temporary files pyproject.toml, requirements.lock, and
  requirements-dev.lock (Generated by rye, the tool I use to manage
python projects. Will be removed when this PR is complete).
- Added type annotations to CacheFileHandler

- Updated temporary files
also preemtively updated changelog
@JackDyre JackDyre marked this pull request as ready for review January 16, 2025 21:21
@JackDyre
Copy link
Contributor Author

This should be ready to merge. I never ended up figuring out how to type-annotate the optional dependencies, but everything else is type annotated.

@stephanebruckert stephanebruckert changed the base branch from master to v3 January 16, 2025 22:17
@stephanebruckert stephanebruckert merged commit 3fe3eb8 into spotipy-dev:v3 Jan 18, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants