GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — cachetools: precise typing for decorators and cached(); expose cache_info/cache_clear and fix keys signatures by ashm-dev · Pull Request #14770 · python/typeshed

Conversation

@ashm-dev

@ashm-dev ashm-dev commented Sep 23, 2025

Copy link
Copy Markdown
Contributor

Closes: #14766

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
ashm-dev added 5 commits September 23, 2025 14:03
@ashm-dev
Update func.pyi with precise cache decorator type hints
293b140
@ashm-dev
Add positional-only marker to methodkey and typedmethodkey
8dda4ea
@ashm-dev
Add precise type annotations for cached decorator and helpers
ea350e1
@ashm-dev
Make info parameter in cached overloads keyword-optional
80cf6f8
@ashm-dev
Merge remote-tracking branch 'upstream/main' into cachetools
d78dedf
@github-actions

This comment has been minimized.

Sign in to view
@ashm-dev
Merge branch 'main' into cachetools
8d2d7e4
@github-actions

This comment has been minimized.

Sign in to view
@ashm-dev
Merge branch 'main' into cachetools
975aff4
@github-actions

This comment has been minimized.

Sign in to view
@ashm-dev

ashm-dev commented Sep 25, 2025

Copy link
Copy Markdown
Contributor Author

@srittau @sobolevn
Could you take a look at my PR when you have a chance?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ashm-dev
Merge branch 'main' into cachetools
51d8019
@github-actions

This comment has been minimized.

Sign in to view
@srittau

srittau commented Sep 30, 2025

Copy link
Copy Markdown
Collaborator

Considering this is a quite complex change, could you have a look at #14768, where I add some tests for functools.cache and add some similar tests for this change? The tests go into stubs/cachetools/@tests/test_cases/check_*.py (where the asterisk is a stand-in for an appropriate name).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ashm-dev

ashm-dev commented Sep 30, 2025

Copy link
Copy Markdown
Contributor Author

Yes, of course, I’ll take care of it)

srittau reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

ashm-dev added 3 commits October 13, 2025 13:55
@ashm-dev
Merge remote-tracking branch 'upstream/main' into cachetools
1c29b6e
@ashm-dev
Add test cases for cachetools stubs
445d9dd
@ashm-dev
Merge branch 'main' into cachetools
3d3c0f3
@github-actions

This comment has been minimized.

Sign in to view
@ashm-dev

ashm-dev commented Oct 13, 2025

Copy link
Copy Markdown
Contributor Author

@srittau I added the tests, please check them!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ashm-dev
Merge branch 'main' into cachetools
df66cb2
@github-actions

github-actions Bot commented Oct 21, 2025

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

srittau
srittau approved these changes Oct 21, 2025
View reviewed changes

@srittau srittau left a comment

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

ashm-dev reacted with heart emoji
All reactions
  • ❤️ 1 reaction
@srittau
srittau merged commit fa0e5fc into python:main Oct 21, 2025
1 check passed

Uh oh!

There was an error while loading. Please reload this page.

@ashm-dev
ashm-dev deleted the cachetools branch October 21, 2025 11:01
@srittau srittau mentioned this pull request Oct 21, 2025
cachetools issue with func.clear_cache() hints #14901
Closed
@brianschubert brianschubert mentioned this pull request Mar 15, 2026
[cachetools] Add @type_check_only to stub-only private classes #15516
Merged
This was referenced Oct 24, 2026
cachetools __wrapped__ #13644
Closed
cachetools memoizing attributes (cache, key, lock) are not available #13395
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@srittau srittau srittau approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[cachetools] Support cache_info on functions

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@ashm-dev @srittau
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.