From 390d8f4911a43d8db04f82d5a2df201a58574c48 Mon Sep 17 00:00:00 2001 From: Christopher Sang Date: Mon, 5 Apr 2021 14:09:08 -0400 Subject: [PATCH] Fix incorrect type hint for cachetools TTLCache.expire (#5186) `TTLCache.expire` expects a time value, not a timer function --- stubs/cachetools/cachetools/ttl.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/cachetools/cachetools/ttl.pyi b/stubs/cachetools/cachetools/ttl.pyi index db7618453..539ed69e2 100644 --- a/stubs/cachetools/cachetools/ttl.pyi +++ b/stubs/cachetools/cachetools/ttl.pyi @@ -20,4 +20,4 @@ class TTLCache(Cache[_KT, _VT]): def timer(self) -> Callable[[], float]: ... @property def ttl(self) -> float: ... - def expire(self, time: Optional[Callable[[], float]] = ...) -> None: ... + def expire(self, time: Optional[float] = ...) -> None: ...