Skip to content

cachetools issue with func.clear_cache() hints #14901

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions