Skip to content

cachetools issue with func.clear_cache() hints #14901

@DeflateAwning

Description

@DeflateAwning

Issue is present in version 6.2.0 and 6.2.1.

Pyright complains of reportFunctionMemberAccess issue in this example:

import cachetools.func

@cachetools.func.ttl_cache(ttl=60 * 20)  # Cache for 20m.
def square(x):
    return x * x

square.cache_clear() # pyright issue is here (reportFunctionMemberAccess).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions