mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-08 13:05:14 +08:00
Fix incorrect type hint for cachetools TTLCache.expire (#5186)
`TTLCache.expire` expects a time value, not a timer function
This commit is contained in:
1 parent
5a3b6c72a7
commit
390d8f4911
1 file changed
+1
-1
@@ -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: ...
|
||||
Reference in new issue
Block a user