Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
vdusek committed Dec 4, 2023
1 parent 48303bf commit 31a95fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apify/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def __init__(self: LRUCache, max_length: int) -> None:
self._cache = OrderedDict()
self._max_length = max_length

def __getitem__(self: LRUCache, key: str) -> Any:
def __getitem__(self: LRUCache, key: str) -> T:
"""Get an item from the cache. Move it to the end if present."""
val = self._cache[key]
# No 'key in cache' condition since the previous line would raise KeyError
Expand Down

0 comments on commit 31a95fd

Please sign in to comment.