Skip to content

Need to update cachetools decorator type stub with paramspec #4849

@judej

Description

@judej

In https://github.com/python/typeshed/blob/master/third_party/2and3/cachetools/decorators.pyi, ParamSpec needs to be added to the Callable and ContextManager params

def cached(
    cache: Optional[MutableMapping[_KT, _VT]], key: Callable[..., _KT] = ..., lock: Optional[ContextManager[_T_co]] = ...
) -> Callable[[_T], _T]: ...

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