mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Fix type of lock parameter of cachetools.cachedmethod() decorator (#6144)
This commit is contained in:
@@ -54,5 +54,7 @@ def cached(
|
||||
cache: MutableMapping[_KT, Any] | None, key: Callable[..., _KT] = ..., lock: ContextManager[Any] | None = ...
|
||||
) -> IdentityFunction: ...
|
||||
def cachedmethod(
|
||||
cache: Callable[[Any], MutableMapping[_KT, Any] | None], key: Callable[..., _KT] = ..., lock: ContextManager[Any] | None = ...
|
||||
cache: Callable[[Any], MutableMapping[_KT, Any] | None],
|
||||
key: Callable[..., _KT] = ...,
|
||||
lock: Callable[[Any], ContextManager[Any]] | None = ...,
|
||||
) -> IdentityFunction: ...
|
||||
|
||||
Reference in New Issue
Block a user