Skip to content

[cachetools] Support cache_info on functions #14766

@brandonchinn178

Description

@brandonchinn178
@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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions