mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 08:47:39 +08:00
[requests] add types for HTTPAdapter init (#5164)
* [requests] add types for HTTPAdapter init
This commit is contained in:
committed by
GitHub
parent
f626da6553
commit
32f56444c0
@@ -29,9 +29,10 @@ SSLError = exceptions.SSLError
|
||||
ProxyError = exceptions.ProxyError
|
||||
RetryError = exceptions.RetryError
|
||||
|
||||
DEFAULT_POOLBLOCK: Any
|
||||
DEFAULT_POOLSIZE: Any
|
||||
DEFAULT_RETRIES: Any
|
||||
DEFAULT_POOLBLOCK: bool
|
||||
DEFAULT_POOLSIZE: int
|
||||
DEFAULT_RETRIES: int
|
||||
DEFAULT_POOL_TIMEOUT: Optional[float]
|
||||
|
||||
class BaseAdapter:
|
||||
def __init__(self) -> None: ...
|
||||
@@ -48,10 +49,12 @@ class BaseAdapter:
|
||||
|
||||
class HTTPAdapter(BaseAdapter):
|
||||
__attrs__: Any
|
||||
max_retries: Any
|
||||
max_retries: int
|
||||
config: Any
|
||||
proxy_manager: Any
|
||||
def __init__(self, pool_connections=..., pool_maxsize=..., max_retries=..., pool_block=...) -> None: ...
|
||||
def __init__(
|
||||
self, pool_connections: int = ..., pool_maxsize: int = ..., max_retries: Union[Retry, int] = ..., pool_block: bool = ...
|
||||
) -> None: ...
|
||||
poolmanager: Any
|
||||
def init_poolmanager(self, connections, maxsize, block=..., **pool_kwargs): ...
|
||||
def proxy_manager_for(self, proxy, **proxy_kwargs): ...
|
||||
|
||||
Reference in New Issue
Block a user