massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / retry / retry / api.pyi
1 from _typeshed import IdentityFunction
2 from logging import Logger
3 from typing import Any, Callable, Sequence, Tuple, Type, TypeVar
4
5 _R = TypeVar("_R")
6
7 def retry_call(
8     f: Callable[..., _R],
9     fargs: Sequence[Any] | None = ...,
10     fkwargs: dict[str, Any] | None = ...,
11     exceptions: Type[Exception] | Tuple[Type[Exception], ...] = ...,
12     tries: int = ...,
13     delay: float = ...,
14     max_delay: float | None = ...,
15     backoff: float = ...,
16     jitter: tuple[float, float] | float = ...,
17     logger: Logger | None = ...,
18 ) -> _R: ...
19 def retry(
20     exceptions: Type[Exception] | Tuple[Type[Exception], ...] = ...,
21     tries: int = ...,
22     delay: float = ...,
23     max_delay: float | None = ...,
24     backoff: float = ...,
25     jitter: tuple[float, float] | float = ...,
26     logger: Logger | None = ...,
27 ) -> IdentityFunction: ...