diff --git a/Github/cache.py b/Github/cache.py index 3ca7be4..d63f686 100644 --- a/Github/cache.py +++ b/Github/cache.py @@ -2,8 +2,8 @@ from __future__ import annotations -from collections import deque, UserDict -from typing import Any, Deque, Tuple, TypeVar +from collections import deque +from typing import Any, Deque, Tuple, TypeVar, Dict __all__: Tuple[str, ...] = ('ObjectCache',) @@ -12,7 +12,7 @@ K = TypeVar('K') V = TypeVar('V') -class _BaseCache(UserDict[K, V]): +class _BaseCache(Dict[K, V]): """This is a rough implementation of an LRU Cache using a deque and a dict.""" __slots__: Tuple[str, ...] = ('_max_size', '_lru_keys')