Skip to content

Use functools.cache instead of lru_cache to establish singletons. #29581

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

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Feb 5, 2025

The intent is clearer (and cache is slightly more optimized).

Followup to #24980.

PR summary

PR checklist

The intent is clearer (and cache is slightly more optimized).
@QuLogic QuLogic added this to the v3.11.0 milestone Feb 6, 2025
@QuLogic QuLogic merged commit 2ab27cd into matplotlib:main Feb 6, 2025
44 checks passed
@anntzer anntzer deleted the cache branch February 6, 2025 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants