mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +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:
@@ -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