massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / cachetools / cachetools / func.pyi
1 from _typeshed import IdentityFunction
2 from typing import Callable, Sequence, TypeVar
3
4 _T = TypeVar("_T")
5
6 def fifo_cache(maxsize: float = ..., typed: bool = ...) -> IdentityFunction: ...
7 def lfu_cache(maxsize: float = ..., typed: bool = ...) -> IdentityFunction: ...
8 def lru_cache(maxsize: float = ..., typed: bool = ...) -> IdentityFunction: ...
9 def mru_cache(maxsize: float = ..., typed: bool = ...) -> IdentityFunction: ...
10 def rr_cache(maxsize: float = ..., choice: Callable[[Sequence[_T]], _T] | None = ..., typed: bool = ...) -> IdentityFunction: ...
11 def ttl_cache(
12     maxsize: float = ..., ttl: float = ..., timer: Callable[[], float] = ..., typed: bool = ...
13 ) -> IdentityFunction: ...