Skip to content

Commit

Permalink
Remove stubs for urllib3 (#10812)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
AlexWaygood committed Sep 30, 2023
1 parent 460fa14 commit 559d31c
Show file tree
Hide file tree
Showing 29 changed files with 4 additions and 864 deletions.
1 change: 0 additions & 1 deletion pyrightconfig.stricter.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
"stubs/stripe",
"stubs/tqdm",
"stubs/ttkthemes",
"stubs/urllib3",
"stubs/vobject",
"stubs/WebOb",
"stubs/workalendar",
Expand Down
3 changes: 2 additions & 1 deletion stubs/influxdb-client/METADATA.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
version = "1.37.*"
upstream_repository = "https://github.com/influxdata/influxdb-client-python"
requires = ["types-urllib3"]
# requires a version of urllib3 with a py.typed file
requires = ["urllib3>=2"]

[tool.stubtest]
extras = ["extra"]
Expand Down
4 changes: 0 additions & 4 deletions stubs/requests/@tests/stubtest_allowlist.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Re-exports from urllib3 (should be fixed in those stubs, not here)
requests\.adapters\.PoolManager\..*
requests\.adapters\.Retry\..*

# Loop variables that leak into the global scope
requests.packages.mod
requests.packages.package
Expand Down
3 changes: 2 additions & 1 deletion stubs/requests/METADATA.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
version = "2.31.*"
upstream_repository = "https://github.com/psf/requests"
requires = ["types-urllib3"]
# requires a version of urllib3 with a py.typed file
requires = ["urllib3>=2"]

[tool.stubtest]
extras = ["socks"]
31 changes: 0 additions & 31 deletions stubs/urllib3/@tests/stubtest_allowlist.txt

This file was deleted.

8 changes: 0 additions & 8 deletions stubs/urllib3/METADATA.toml

This file was deleted.

28 changes: 0 additions & 28 deletions stubs/urllib3/urllib3/__init__.pyi

This file was deleted.

55 changes: 0 additions & 55 deletions stubs/urllib3/urllib3/_collections.pyi

This file was deleted.

56 changes: 0 additions & 56 deletions stubs/urllib3/urllib3/connection.pyi

This file was deleted.

129 changes: 0 additions & 129 deletions stubs/urllib3/urllib3/connectionpool.pyi

This file was deleted.

Empty file.
45 changes: 0 additions & 45 deletions stubs/urllib3/urllib3/contrib/socks.pyi

This file was deleted.

Loading

0 comments on commit 559d31c

Please sign in to comment.