mirror of
https://github.com/RGBCube/GitHubWrapper
synced 2025-05-17 14:35:09 +00:00
Added Sphinx documentation to the client.py file
This commit is contained in:
parent
2b557f9953
commit
0de6781a96
6 changed files with 199 additions and 26 deletions
|
@ -18,7 +18,7 @@ class _BaseCache(Dict[K, V]):
|
|||
__slots__: Tuple[str, ...] = ('_max_size', '_lru_keys')
|
||||
|
||||
def __init__(self, max_size: int, *args: Any) -> None:
|
||||
self._max_size: int = max(min(max_size, 15), 0) # bounding max_size to 15 for now
|
||||
self._max_size: int = max(min(max_size, 30), 0) # bounding max_size to 15 for now
|
||||
self._lru_keys: Deque[K] = deque(maxlen=self._max_size)
|
||||
super().__init__(*args)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue