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] Support cache_info on functions · Issue #14766 · python/typeshed

[cachetools] Support cache_info on functions #14766

New issue
Copy link
New issue
Copy link
Closed
#14770
Closed
[cachetools] Support cache_info on functions#14766
#14770
Copy link
Labels
stubs: false positiveType checkers report false errorsType checkers report false errors

Description

@brandonchinn178
brandonchinn178
opened on Sep 23, 2025
Issue body actions
@ttl_cache()
def foo(x: str) -> int:
    ...

# "Callable[[Any, str], list[str] | None]" has no attribute "cache_info"
print(foo.cache_info())

Related: #11280 #6347

Activity

  1. srittau
    changed the title [-]Support cache_info on cachetools functions[/-] [+][cachetools] Support cache_info on functions[/+] on Sep 23, 2025
  2. srittau
    added
    stubs: false positiveType checkers report false errorsType checkers report false errors
    on Sep 23, 2025
  3. srittau commented on Sep 23, 2025

    @srittau
    srittau
    on Sep 23, 2025
    Collaborator
    More actions

    Currently, all the cachetools functions just return IdentityFunction. They should probably return a custom callable class with additional attributes, similar to what functools does.

  4. srittau
    closed this as completedin #14770on Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stubs: false positiveType checkers report false errorsType checkers report false errors

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      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.