aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/prompt-toolkit/py3/prompt_toolkit/cache.py
diff options
context:
space:
mode:
authorrobot-contrib <robot-contrib@yandex-team.com>2023-12-11 10:59:41 +0300
committerrobot-contrib <robot-contrib@yandex-team.com>2023-12-11 11:40:57 +0300
commit708e84a1342eccd8b69c761dd2916e33503a883a (patch)
treeee90cd4ab26e843c00724b957ef247cc3d1b6f9f /contrib/python/prompt-toolkit/py3/prompt_toolkit/cache.py
parent425d65a76c5bda62894f93d32f1f5e32f7439539 (diff)
downloadydb-708e84a1342eccd8b69c761dd2916e33503a883a.tar.gz
Update contrib/python/prompt-toolkit/py3 to 3.0.41
Diffstat (limited to 'contrib/python/prompt-toolkit/py3/prompt_toolkit/cache.py')
-rw-r--r--contrib/python/prompt-toolkit/py3/prompt_toolkit/cache.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/python/prompt-toolkit/py3/prompt_toolkit/cache.py b/contrib/python/prompt-toolkit/py3/prompt_toolkit/cache.py
index ada8d9856a..01dd1f79d6 100644
--- a/contrib/python/prompt-toolkit/py3/prompt_toolkit/cache.py
+++ b/contrib/python/prompt-toolkit/py3/prompt_toolkit/cache.py
@@ -2,7 +2,7 @@ from __future__ import annotations
from collections import deque
from functools import wraps
-from typing import Any, Callable, Deque, Dict, Generic, Hashable, Tuple, TypeVar, cast
+from typing import Any, Callable, Dict, Generic, Hashable, Tuple, TypeVar, cast
__all__ = [
"SimpleCache",
@@ -26,7 +26,7 @@ class SimpleCache(Generic[_T, _U]):
assert maxsize > 0
self._data: dict[_T, _U] = {}
- self._keys: Deque[_T] = deque()
+ self._keys: deque[_T] = deque()
self.maxsize: int = maxsize
def get(self, key: _T, getter_func: Callable[[], _U]) -> _U:
@@ -86,7 +86,7 @@ class FastDictCache(Dict[_K, _V]):
def __init__(self, get_value: Callable[..., _V], size: int = 1000000) -> None:
assert size > 0
- self._keys: Deque[_K] = deque()
+ self._keys: deque[_K] = deque()
self.get_value = get_value
self.size = size