massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / requests / requests / packages / urllib3 / poolmanager.pyi
1 from typing import Any
2
3 from .request import RequestMethods
4
5 class PoolManager(RequestMethods):
6     proxy: Any
7     connection_pool_kw: Any
8     pools: Any
9     def __init__(self, num_pools=..., headers=..., **connection_pool_kw) -> None: ...
10     def __enter__(self): ...
11     def __exit__(self, exc_type, exc_val, exc_tb): ...
12     def clear(self): ...
13     def connection_from_host(self, host, port=..., scheme=...): ...
14     def connection_from_url(self, url): ...
15     # TODO: This was the original signature -- copied another one from base class to fix complaint.
16     # def urlopen(self, method, url, redirect=True, **kw): ...
17     def urlopen(self, method, url, body=..., headers=..., encode_multipart=..., multipart_boundary=..., **kw): ...
18
19 class ProxyManager(PoolManager):
20     proxy: Any
21     proxy_headers: Any
22     def __init__(self, proxy_url, num_pools=..., headers=..., proxy_headers=..., **connection_pool_kw) -> None: ...
23     def connection_from_host(self, host, port=..., scheme=...): ...
24     # TODO: This was the original signature -- copied another one from base class to fix complaint.
25     # def urlopen(self, method, url, redirect=True, **kw): ...
26     def urlopen(self, method, url, body=..., headers=..., encode_multipart=..., multipart_boundary=..., **kw): ...
27
28 def proxy_from_url(url, **kw): ...