Commit Graph

24 Commits

Author SHA1 Message Date
Kevin Kirsche
8c51fab4e2 Support extras in stubtest_third_party.py (#8467) 2022-08-18 14:12:36 -07:00
Kevin Kirsche
103c2f39d2 Add urllib3.contrib.socks; improve urllib3.connectionpool (#8457)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-08-04 11:36:40 +01:00
Anton Grübel
7148ee8612 Improve urllib3.util.url annotations (#8460) 2022-08-02 22:57:39 +01:00
Kevin Kirsche
3d9e907873 Improve urllib3.fields annotations (#8456)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-08-01 15:39:21 +01:00
Sebastian Kreft
66eef16d66 Add annotations to urrlib3.util.url (#8448) 2022-07-30 20:04:45 +01:00
Alex Waygood
fdeb216547 Remove or move several TypeAlias declarations (#8444) 2022-07-30 15:28:52 +01:00
Kevin Kirsche
df905102da Add more urllib3.__init__ annotations (#8402) 2022-07-25 22:17:52 +01:00
Kevin Kirsche
be2921648c Annotate urllib3.disable_warnings (#8245) 2022-07-06 15:35:05 +01:00
Alex Waygood
fa636bc044 Third-party stubs: fix several fictitious type aliases (#7958) 2022-05-26 06:26:26 -07:00
Akuli
e613fc483b Delete python 2 branches from third-party stubs (#7741)
Since #7703, we no longer have third-party stubs that support Python 2, so code like `if sys.version_info >= (3, 0)` can be simplified.
2022-04-29 20:53:01 +01:00
Alex Waygood
653f2c6ba4 Third-party stubs: import from collections.abc where possible (#7637) 2022-04-16 14:52:57 +01:00
Alex Waygood
740193a8fc Use TypeAlias where possible for type aliases (#7630) 2022-04-15 18:01:00 -07:00
Jelle Zijlstra
bd449c983a urllib3: stubs are not Python 2 compatible (#7480)
They use http.client, which is Python 3-only. Another catch from #7478.
2022-03-13 07:09:01 +00:00
Hugo
ba1482bba4 Add DEFAULT_CIPHERS to urllib3.util.ssl_ (#7399) 2022-02-28 19:08:16 +01:00
Alex Waygood
b4e97a1909 Improve __enter__ & constructor methods (#7114) 2022-02-02 22:14:59 +01:00
Shantanu
b88a6f19cd Upgrade black version (#7089) 2022-01-30 16:27:06 -08:00
Jelle Zijlstra
1a0e0a4023 urllib3: allow allowed_methods to be False (#6909) 2022-01-13 15:26:56 +01:00
Matteo Centenaro
6907d7f7c6 Update types in urllib3.util.retry (#6892) 2022-01-12 10:06:49 +01:00
AChenQ
d0907f1073 urllib3: add "__version__" (#6890)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-01-10 19:33:30 -08:00
Philip Dexter
9de17bd5ae Fix urllib3.util.Retry.sleep type (#6883) 2022-01-10 10:58:23 +01:00
Joseph Young
f68047e88e Annotate urllib3.exceptions (#6865) 2022-01-09 21:57:33 +01:00
Joseph Young
75a608bf49 Annotate urllib3.response (#6871) 2022-01-09 21:54:40 +01:00
Sebastian Rittau
f8501d33c7 Use types-urllib3 for requests (#6859) 2022-01-08 16:25:50 +02:00
Sebastian Rittau
29563c3cc3 Add urllib3 stubs (#6858) 2022-01-08 14:49:06 +02:00