massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / retry / retry / api.pyi
diff --git a/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/retry/retry/api.pyi b/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/retry/retry/api.pyi
new file mode 100644 (file)
index 0000000..a0b68c1
--- /dev/null
@@ -0,0 +1,27 @@
+from _typeshed import IdentityFunction
+from logging import Logger
+from typing import Any, Callable, Sequence, Tuple, Type, TypeVar
+
+_R = TypeVar("_R")
+
+def retry_call(
+    f: Callable[..., _R],
+    fargs: Sequence[Any] | None = ...,
+    fkwargs: dict[str, Any] | None = ...,
+    exceptions: Type[Exception] | Tuple[Type[Exception], ...] = ...,
+    tries: int = ...,
+    delay: float = ...,
+    max_delay: float | None = ...,
+    backoff: float = ...,
+    jitter: tuple[float, float] | float = ...,
+    logger: Logger | None = ...,
+) -> _R: ...
+def retry(
+    exceptions: Type[Exception] | Tuple[Type[Exception], ...] = ...,
+    tries: int = ...,
+    delay: float = ...,
+    max_delay: float | None = ...,
+    backoff: float = ...,
+    jitter: tuple[float, float] | float = ...,
+    logger: Logger | None = ...,
+) -> IdentityFunction: ...