From f94d4966263fa8b15aff0221c2a65c4b6e4d19d5 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Fri, 3 Feb 2023 12:20:38 +0000 Subject: [PATCH] Update `cachetools` stubs to 5.3.* (#9666) --- stubs/cachetools/METADATA.toml | 2 +- stubs/cachetools/cachetools/__init__.pyi | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/stubs/cachetools/METADATA.toml b/stubs/cachetools/METADATA.toml index afc1fcfda..a64439bf5 100644 --- a/stubs/cachetools/METADATA.toml +++ b/stubs/cachetools/METADATA.toml @@ -1,4 +1,4 @@ -version = "5.2.*" +version = "5.3.*" [tool.stubtest] ignore_missing_stub = false diff --git a/stubs/cachetools/cachetools/__init__.pyi b/stubs/cachetools/cachetools/__init__.pyi index eea24f3f6..06fcc5083 100644 --- a/stubs/cachetools/cachetools/__init__.pyi +++ b/stubs/cachetools/cachetools/__init__.pyi @@ -97,7 +97,10 @@ class TLRUCache(_TimedCache[_KT, _VT]): def expire(self, time: float | None = ...) -> None: ... def cached( - cache: MutableMapping[_KT, Any] | None, key: Callable[..., _KT] = ..., lock: AbstractContextManager[Any] | None = ... + cache: MutableMapping[_KT, Any] | None, + key: Callable[..., _KT] = ..., + lock: AbstractContextManager[Any] | None = None, + info: bool = False, ) -> IdentityFunction: ... def cachedmethod( cache: Callable[[Any], MutableMapping[_KT, Any] | None],