Update stubs

This commit is contained in:
Trinh Anh Ngoc
2022-10-06 09:55:39 +07:00
parent 54bd7bf18b
commit 535736e421

View File

@@ -1,17 +1,19 @@
from collections import OrderedDict
from threading import RLock
from typing import Any
__all__: Any
__all__ = ['LRU']
class LRU:
_lock: Any
count: Any
d: Any
def __init__(self, count, pairs=...) -> None: ...
def __contains__(self, obj): ...
_lock: RLock
count: int
d: OrderedDict
def __init__(self, count: int, pairs: tuple[Any, Any] = ...) -> None: ...
def __contains__(self, obj) -> bool: ...
def get(self, obj, val: Any | None = ...): ...
def __getitem__(self, obj): ...
def __setitem__(self, obj, val) -> None: ...
def __delitem__(self, obj) -> None: ...
def __len__(self): ...
def __len__(self) -> int: ...
def pop(self, key): ...
def clear(self) -> None: ...