# Stubs for requests.packages.urllib3.poolmanager (Python 3.4)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.

from typing import Any
from .request import RequestMethods

class PoolManager(RequestMethods):
    proxy = ...  # type: Any
    connection_pool_kw = ...  # type: Any
    pools = ...  # type: Any
    def __init__(self, num_pools=..., headers=..., **connection_pool_kw) -> None: ...
    def __enter__(self): ...
    def __exit__(self, exc_type, exc_val, exc_tb): ...
    def clear(self): ...
    def connection_from_host(self, host, port=..., scheme=...): ...
    def connection_from_url(self, url): ...
    # TODO: This was the original signature -- copied another one from base class to fix complaint.
    # def urlopen(self, method, url, redirect=True, **kw): ...
    def urlopen(self, method, url, body=..., headers=..., encode_multipart=..., multipart_boundary=..., **kw): ...

class ProxyManager(PoolManager):
    proxy = ...  # type: Any
    proxy_headers = ...  # type: Any
    def __init__(self, proxy_url, num_pools=..., headers=..., proxy_headers=..., **connection_pool_kw) -> None: ...
    def connection_from_host(self, host, port=..., scheme=...): ...
    # TODO: This was the original signature -- copied another one from base class to fix complaint.
    # def urlopen(self, method, url, redirect=True, **kw): ...
    def urlopen(self, method, url, body=..., headers=..., encode_multipart=..., multipart_boundary=..., **kw): ...

def proxy_from_url(url, **kw): ...
