Skip to content

Commit dede8bc

Browse files
[cachetools] Update to 6.2.* (#14644)
1 parent bc1737a commit dede8bc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

stubs/cachetools/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version = "6.1.*"
1+
version = "6.2.*"
22
upstream_repository = "https://github.com/tkem/cachetools"

stubs/cachetools/cachetools/__init__.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ from collections.abc import Callable, Iterator, MutableMapping, Sequence
33
from contextlib import AbstractContextManager
44
from threading import Condition
55
from typing import Any, TypeVar, overload
6-
from typing_extensions import deprecated
6+
from typing_extensions import Self, deprecated
77

88
__all__ = ("Cache", "FIFOCache", "LFUCache", "LRUCache", "RRCache", "TLRUCache", "TTLCache", "cached", "cachedmethod")
99
__version__: str
@@ -52,6 +52,8 @@ class RRCache(Cache[_KT, _VT]):
5252
def __init__(self, maxsize: float, choice: Callable[[Sequence[_KT]], _KT], getsizeof: Callable[[_VT], float]) -> None: ...
5353
@property
5454
def choice(self) -> Callable[[Sequence[_KT]], _KT]: ...
55+
def __setitem__(self, key: _KT, value: _VT, cache_setitem: Callable[[Self, _KT, _VT], None] = ...) -> None: ...
56+
def __delitem__(self, key: _KT, cache_delitem: Callable[[Self, _KT], None] = ...) -> None: ...
5557

5658
class _TimedCache(Cache[_KT, _VT]):
5759
@overload

0 commit comments

Comments
 (0)