Skip to content

Commit 8138de9

Browse files
committed
Python typings are as useful as a gioter (old Styrian saying).
1 parent 0344970 commit 8138de9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stubs/cachetools/cachetools/__init__.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class TTLCache(_TimedCache[_KT, _VT]):
7676
def __init__(self, maxsize: float, ttl: Any, timer: Callable[..., _TT] = ..., *, getsizeof: Callable[[_VT], float]): ...
7777
@property
7878
def ttl(self) -> Any: ...
79-
def expire(self, time: _TT | None = None) -> list[tuple[_KT, _VT]]: ...
79+
def expire(self, time: Any | None = None) -> list[tuple[_KT, _VT]]: ...
8080

8181
class TLRUCache(_TimedCache[_KT, _VT]):
8282
@overload
@@ -98,7 +98,7 @@ class TLRUCache(_TimedCache[_KT, _VT]):
9898
): ...
9999
@property
100100
def ttu(self) -> Callable[[_KT, _VT, _TT], _TT]: ...
101-
def expire(self, time: _TT | None = None) -> list[tuple[_KT, _VT]]: ...
101+
def expire(self, time: Any | None = None) -> list[tuple[_KT, _VT]]: ...
102102

103103
class _CacheInfo(NamedTuple):
104104
hits: int

0 commit comments

Comments
 (0)