From 40d85eccdf5dfe23bdccdb68f3b81a1db9a4d974 Mon Sep 17 00:00:00 2001 From: Max Rozentsveyg Date: Mon, 26 Jun 2017 11:13:52 -0700 Subject: [PATCH 1/2] Add type stub for requests.packages.urllib3.util.connection.HAS_IPV6 This is defined at https://github.com/requests/requests/blob/v2.14.2/requests/packages/urllib3/util/connection.py#L130 --- third_party/2and3/requests/packages/urllib3/util/connection.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/third_party/2and3/requests/packages/urllib3/util/connection.pyi b/third_party/2and3/requests/packages/urllib3/util/connection.pyi index c8ed513b9da5..9b7235c88f17 100644 --- a/third_party/2and3/requests/packages/urllib3/util/connection.pyi +++ b/third_party/2and3/requests/packages/urllib3/util/connection.pyi @@ -2,6 +2,7 @@ from typing import Any poll = ... # type: Any select = ... # type: Any +HAS_IPV6 = ... # type: bool def is_connection_dropped(conn): ... def create_connection(address, timeout=..., source_address=..., socket_options=...): ... From 197a97301cdb5144a9f4aa900285e4c11212b890 Mon Sep 17 00:00:00 2001 From: Max Rozentsveyg Date: Mon, 26 Jun 2017 11:32:44 -0700 Subject: [PATCH 2/2] Update connection.pyi --- third_party/2and3/requests/packages/urllib3/util/connection.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/2and3/requests/packages/urllib3/util/connection.pyi b/third_party/2and3/requests/packages/urllib3/util/connection.pyi index 9b7235c88f17..5068a2270651 100644 --- a/third_party/2and3/requests/packages/urllib3/util/connection.pyi +++ b/third_party/2and3/requests/packages/urllib3/util/connection.pyi @@ -2,7 +2,7 @@ from typing import Any poll = ... # type: Any select = ... # type: Any -HAS_IPV6 = ... # type: bool +HAS_IPV6 = ... # type: bool def is_connection_dropped(conn): ... def create_connection(address, timeout=..., source_address=..., socket_options=...): ...