Commit Graph

40 Commits

Author SHA1 Message Date
Sebastian Rittau
afe18e95a9 Add an upstream_repository field to METADATA.toml (#10487)
Closes: #10478
2023-07-20 16:45:41 +02:00
Avasam
db0149859c Add partial_stub metadata field (#10157) 2023-05-10 17:04:18 +02:00
Alex Waygood
e0db6d2edd urllib3: move stubs for ssl_match_hostname around (#10117) 2023-04-30 07:02:55 -07:00
github-actions[bot]
9e4613789c [stubsabot] Mark urllib3 as obsolete since 2.0.0 (#10087)
Release: https://pypi.org/pypi/urllib3/2.0.0
Changelog: https://github.com/urllib3/urllib3/blob/main/CHANGES.rst
Diff: https://github.com/urllib3/urllib3/compare/1.26.15...2.0.0

Co-authored-by: stubsabot <>
2023-04-27 02:33:22 +01:00
Alex Waygood
ccc4b7a034 Add defaults to third-party stubs U-Z (#9971) 2023-03-28 19:33:38 +02:00
Adam Dangoor
ced150a7e8 Add types to urllib3.filepost stubs (#9924) 2023-03-26 15:15:36 +01:00
Avasam
52ec44fa58 Improve many __(a)exit__ annotations (#9696) 2023-02-25 21:50:30 +00:00
Avasam
ed6748fb32 Stubtest settings: change ignore_missing_stub default to false (#9779)
If you're reading about this commit from an autogenerated changelog entry, this should have no user-visible impact on how the stubs are interpreted by a type checker; it's just an internal change to how typeshed's tests work.
2023-02-20 22:37:45 +00:00
Alex Waygood
7180d0223b Use typing_extensions.Self instead of _typeshed.Self (#9702) 2023-02-15 11:32:43 +01:00
Alex Waygood
0ef9c3f8e8 Enable flake8-pyi's Y037 (#9686) 2023-02-06 19:01:02 -08:00
Quentin Pradet
0fbe70f709 Fix urllib3 Url.port type (#9208) 2022-11-16 10:23:50 +01:00
Nikita Sobolev
62a6c3d616 Annotate known magic-method return types (#9131) 2022-11-08 18:28:42 +00:00
Nikita Sobolev
c0e9038f0d Fix and allow classes with missing metaclasses (#9136) 2022-11-08 18:13:59 +00:00
Nikita Sobolev
3e828bd307 Remove empty __init__ methods from classes with 0 parents (#8907) 2022-10-16 12:47:47 +01:00
Alex Waygood
48e76e8a56 Bump mypy to 0.981 (#8796) 2022-09-26 17:14:33 -07:00
Elton H.Y. Chou
ff3c3b8373 Fix urllib3.response.HTTPResponse.geturl() return type (#8704)
urllib3.response.HTTPResponse.geturl() return should be `str | None`.

Source: 3951d3cf8f/src/urllib3/response.py (L416-L417)
2022-09-07 17:00:38 -07:00
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