mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
requests: Add return type for __init__ methods (#1574)
This commit is contained in:
committed by
Jelle Zijlstra
parent
76685480e0
commit
341237339c
2
third_party/2and3/requests/adapters.pyi
vendored
2
third_party/2and3/requests/adapters.pyi
vendored
@@ -56,7 +56,7 @@ class HTTPAdapter(BaseAdapter):
|
||||
config = ... # type: Any
|
||||
proxy_manager = ... # type: Any
|
||||
def __init__(self, pool_connections=..., pool_maxsize=..., max_retries=...,
|
||||
pool_block=...): ...
|
||||
pool_block=...) -> None: ...
|
||||
poolmanager = ... # type: Any
|
||||
def init_poolmanager(self, connections, maxsize, block=..., **pool_kwargs): ...
|
||||
def proxy_manager_for(self, proxy, **proxy_kwargs): ...
|
||||
|
||||
2
third_party/2and3/requests/models.pyi
vendored
2
third_party/2and3/requests/models.pyi
vendored
@@ -76,7 +76,7 @@ class Request(RequestHooksMixin):
|
||||
auth = ... # type: Any
|
||||
cookies = ... # type: Any
|
||||
def __init__(self, method=..., url=..., headers=..., files=..., data=..., params=...,
|
||||
auth=..., cookies=..., hooks=..., json=...): ...
|
||||
auth=..., cookies=..., hooks=..., json=...) -> None: ...
|
||||
def prepare(self): ...
|
||||
|
||||
class PreparedRequest(RequestEncodingMixin, RequestHooksMixin):
|
||||
|
||||
Reference in New Issue
Block a user