massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / requests / requests / packages / urllib3 / exceptions.pyi
1 from typing import Any
2
3 class HTTPError(Exception): ...
4 class HTTPWarning(Warning): ...
5
6 class PoolError(HTTPError):
7     pool: Any
8     def __init__(self, pool, message) -> None: ...
9     def __reduce__(self): ...
10
11 class RequestError(PoolError):
12     url: Any
13     def __init__(self, pool, url, message) -> None: ...
14     def __reduce__(self): ...
15
16 class SSLError(HTTPError): ...
17 class ProxyError(HTTPError): ...
18 class DecodeError(HTTPError): ...
19 class ProtocolError(HTTPError): ...
20
21 ConnectionError: Any
22
23 class MaxRetryError(RequestError):
24     reason: Any
25     def __init__(self, pool, url, reason=...) -> None: ...
26
27 class HostChangedError(RequestError):
28     retries: Any
29     def __init__(self, pool, url, retries=...) -> None: ...
30
31 class TimeoutStateError(HTTPError): ...
32 class TimeoutError(HTTPError): ...
33 class ReadTimeoutError(TimeoutError, RequestError): ...
34 class ConnectTimeoutError(TimeoutError): ...
35 class EmptyPoolError(PoolError): ...
36 class ClosedPoolError(PoolError): ...
37 class LocationValueError(ValueError, HTTPError): ...
38
39 class LocationParseError(LocationValueError):
40     location: Any
41     def __init__(self, location) -> None: ...
42
43 class ResponseError(HTTPError):
44     GENERIC_ERROR: Any
45     SPECIFIC_ERROR: Any
46
47 class SecurityWarning(HTTPWarning): ...
48 class InsecureRequestWarning(SecurityWarning): ...
49 class SystemTimeWarning(SecurityWarning): ...
50 class InsecurePlatformWarning(SecurityWarning): ...