Skip to content

Commit 559d31c

Browse files
authored
Remove stubs for urllib3 (#10812)
Both types-requests and types-influxdb-client now depend on urllib3>=2 instead of types-urllib3. That in turn means that types-caldav, types-slumber and types-requests-oauthlib all depend indirectly on urllib3>=2, since all three stubs packages depend on types-requests.
1 parent 460fa14 commit 559d31c

29 files changed

+4
-864
lines changed

pyrightconfig.stricter.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@
7474
"stubs/stripe",
7575
"stubs/tqdm",
7676
"stubs/ttkthemes",
77-
"stubs/urllib3",
7877
"stubs/vobject",
7978
"stubs/WebOb",
8079
"stubs/workalendar",

stubs/influxdb-client/METADATA.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
version = "1.37.*"
22
upstream_repository = "https://github.com/influxdata/influxdb-client-python"
3-
requires = ["types-urllib3"]
3+
# requires a version of urllib3 with a py.typed file
4+
requires = ["urllib3>=2"]
45

56
[tool.stubtest]
67
extras = ["extra"]

stubs/requests/@tests/stubtest_allowlist.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# Re-exports from urllib3 (should be fixed in those stubs, not here)
2-
requests\.adapters\.PoolManager\..*
3-
requests\.adapters\.Retry\..*
4-
51
# Loop variables that leak into the global scope
62
requests.packages.mod
73
requests.packages.package

stubs/requests/METADATA.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
version = "2.31.*"
22
upstream_repository = "https://github.com/psf/requests"
3-
requires = ["types-urllib3"]
3+
# requires a version of urllib3 with a py.typed file
4+
requires = ["urllib3>=2"]
45

56
[tool.stubtest]
67
extras = ["socks"]

stubs/urllib3/@tests/stubtest_allowlist.txt

Lines changed: 0 additions & 31 deletions
This file was deleted.

stubs/urllib3/METADATA.toml

Lines changed: 0 additions & 8 deletions
This file was deleted.

stubs/urllib3/urllib3/__init__.pyi

Lines changed: 0 additions & 28 deletions
This file was deleted.

stubs/urllib3/urllib3/_collections.pyi

Lines changed: 0 additions & 55 deletions
This file was deleted.

stubs/urllib3/urllib3/connection.pyi

Lines changed: 0 additions & 56 deletions
This file was deleted.

stubs/urllib3/urllib3/connectionpool.pyi

Lines changed: 0 additions & 129 deletions
This file was deleted.

stubs/urllib3/urllib3/contrib/__init__.pyi

Whitespace-only changes.

stubs/urllib3/urllib3/contrib/socks.pyi

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)