massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / requests / requests / packages / urllib3 / util / retry.pyi
1 from typing import Any
2
3 from .. import exceptions
4
5 ConnectTimeoutError = exceptions.ConnectTimeoutError
6 MaxRetryError = exceptions.MaxRetryError
7 ProtocolError = exceptions.ProtocolError
8 ReadTimeoutError = exceptions.ReadTimeoutError
9 ResponseError = exceptions.ResponseError
10
11 log: Any
12
13 class Retry:
14     DEFAULT_METHOD_WHITELIST: Any
15     BACKOFF_MAX: Any
16     total: Any
17     connect: Any
18     read: Any
19     redirect: Any
20     status_forcelist: Any
21     method_whitelist: Any
22     backoff_factor: Any
23     raise_on_redirect: Any
24     def __init__(
25         self,
26         total=...,
27         connect=...,
28         read=...,
29         redirect=...,
30         status=...,
31         other=...,
32         allowed_methods=...,
33         status_forcelist=...,
34         backoff_factor=...,
35         raise_on_redirect=...,
36         raise_on_status=...,
37         history=...,
38         respect_retry_after_header=...,
39         remove_headers_on_redirect=...,
40         method_whitelist=...,
41     ) -> None: ...
42     def new(self, **kw): ...
43     @classmethod
44     def from_int(cls, retries, redirect=..., default=...): ...
45     def get_backoff_time(self): ...
46     def sleep(self): ...
47     def is_forced_retry(self, method, status_code): ...
48     def is_exhausted(self): ...
49     def increment(self, method=..., url=..., response=..., error=..., _pool=..., _stacktrace=...): ...