From 341237339c708b13f83882ac2146f44acb33c059 Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Fri, 25 Aug 2017 23:34:56 -0400 Subject: [PATCH] requests: Add return type for __init__ methods (#1574) --- third_party/2and3/requests/adapters.pyi | 2 +- third_party/2and3/requests/models.pyi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/third_party/2and3/requests/adapters.pyi b/third_party/2and3/requests/adapters.pyi index 81d021281..7e6167c38 100644 --- a/third_party/2and3/requests/adapters.pyi +++ b/third_party/2and3/requests/adapters.pyi @@ -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): ... diff --git a/third_party/2and3/requests/models.pyi b/third_party/2and3/requests/models.pyi index 265670fe8..18b16894c 100644 --- a/third_party/2and3/requests/models.pyi +++ b/third_party/2and3/requests/models.pyi @@ -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):