We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48303bf commit 31a95fdCopy full SHA for 31a95fd
src/apify/_utils.py
@@ -332,7 +332,7 @@ def __init__(self: LRUCache, max_length: int) -> None:
332
self._cache = OrderedDict()
333
self._max_length = max_length
334
335
- def __getitem__(self: LRUCache, key: str) -> Any:
+ def __getitem__(self: LRUCache, key: str) -> T:
336
"""Get an item from the cache. Move it to the end if present."""
337
val = self._cache[key]
338
# No 'key in cache' condition since the previous line would raise KeyError
0 commit comments