diff --git a/stubs/cachetools/METADATA.toml b/stubs/cachetools/METADATA.toml index cb33580d4..de2f997c7 100644 --- a/stubs/cachetools/METADATA.toml +++ b/stubs/cachetools/METADATA.toml @@ -1,2 +1,2 @@ -version = "5.4.*" +version = "5.5.*" upstream_repository = "https://github.com/tkem/cachetools" diff --git a/stubs/cachetools/cachetools/__init__.pyi b/stubs/cachetools/cachetools/__init__.pyi index 2b4990efc..a7c0906e0 100644 --- a/stubs/cachetools/cachetools/__init__.pyi +++ b/stubs/cachetools/cachetools/__init__.pyi @@ -85,7 +85,7 @@ class TTLCache(_TimedCache[_KT, _VT]): ) -> None: ... @property def ttl(self) -> float: ... - def expire(self, time: float | None = None) -> None: ... + def expire(self, time: float | None = None) -> list[tuple[_KT, _VT]]: ... class TLRUCache(_TimedCache[_KT, _VT]): def __init__( @@ -97,7 +97,7 @@ class TLRUCache(_TimedCache[_KT, _VT]): ) -> None: ... @property def ttu(self) -> Callable[[_KT, _VT, float], float]: ... - def expire(self, time: float | None = None) -> None: ... + def expire(self, time: float | None = None) -> list[tuple[_KT, _VT]]: ... def cached( cache: MutableMapping[_KT, Any] | None,