Skip to content

build(deps): update httpx2 requirement from >=2.16.1 to >=2.16.2 in /clients/py - #1038

Merged
github-actions[bot] merged 1 commit into
mainfrom
dependabot/pip/clients/py/httpx2-gte-2.16.2
Nov 20, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
dependabot/pip/clients/py/httpx2-gte-2.16.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Updates the requirements on httpx2 to permit the latest version.

Release notes

Sourced from httpx2's releases.

v2.16.2

🩹 Type aliases evaluate at runtime again

httpx2 and httpcore2 2.16.2 are a patch release with one fix. You will notice it if your code, or a library you depend on, uses the aliases in httpx2._types inside a runtime typing construct. On 2.16.1, import mistralai.client failed on Python 3.11 to 3.13.

pip install --upgrade httpx2==2.16.2
  • Optional[QueryParamTypes] and QueryParamTypes | None work again (#1346). In 2.16.1 URLTypes, QueryParamTypes, HeaderTypes, CookieTypes, TimeoutTypes, ProxyTypes and AuthTypes were strings. Optional[...] raised SyntaxError for QueryParamTypes and HeaderTypes, and | None raised TypeError for all seven. They are Union[...] objects again, as in 2.16.0.

httpcore2 has no changes. It is bumped to stay in lockstep with httpx2.

Full changelog: v2.16.1...v2.16.2

Changelog

Sourced from httpx2's changelog.

2.16.2 (November 16th, 2026)

Fixed

  • Restore the Union form of the type aliases in httpx2._types, such as QueryParamTypes and HeaderTypes. In 2.16.1 they were strings, so Optional[QueryParamTypes] raised SyntaxError and QueryParamTypes | None raised TypeError at runtime. (#1346)

2.16.1 (November 16th, 2026)

Fixed

  • Return the response when a redirect has an invalid Location header and redirects are not followed, instead of raising RemoteProtocolError. response.next_request is None in that case. (#1064)
  • Match subdomains for NO_PROXY entries written as *.example.com, the same as .example.com. The entry never matched before, so those requests still went through the proxy. (#1277)
  • Parse Digest challenge parameter names case-insensitively, and allow whitespace around =. A challenge such as Digest Realm="r", Nonce="n" raised ProtocolError before. (#1315)

2.16.0 (October 21st, 2026)

Changed

  • Look up only the cookie domains that match the request host, and skip the expired cookie sweep until a cookie is due. With 1,000 cookies across 500 domains, building the Cookie header is about 18 times faster. Cookies from different domains are now sent from the least to the most specific domain. (#1285)

Fixed

  • Reuse the client cookie jar instead of copying it on every request and redirect. A custom policy set with client.cookies.jar.set_policy() now applies to outgoing requests. (#1284)

2.15.1 (October 19th, 2026)

Fixed

  • Configure the default SSL context once on Linux, instead of on every handshake. With OpenSSL older than 3.4, CPU usage grew over the lifetime of a reused client. (#1253)

2.15.0 (October 19th, 2026)

Removed

  • Drop support for Python 3.10. (#1274)

2.14.0 (October 18th, 2026)

Added

  • Match IP CIDR ranges, like 192.168.0.0/16 and [fe80::]/10, in NO_PROXY and mounts. Requests to any address in the range now bypass the proxy; previously only the network address itself did. (#1165)
  • Accept bracketed IPv6 addresses, like [::1] and [::1]:8080, in NO_PROXY.

... (truncated)

Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Nov 20, 2026
@github-actions
github-actions Bot enabled auto-merge (squash) November 20, 2026 09:05
github-actions[bot]
github-actions Bot previously approved these changes Nov 20, 2026
Updates the requirements on [httpx2](https://github.com/pydantic/httpx2) to permit the latest version.
- [Release notes](https://github.com/pydantic/httpx2/releases)
- [Changelog](https://github.com/pydantic/httpx2/blob/main/src/httpx2/CHANGELOG.md)
- [Commits](pydantic/httpx2@v2.16.1...v2.16.2)

---
updated-dependencies:
- dependency-name: httpx2
  dependency-version: 2.16.2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/pip/clients/py/httpx2-gte-2.16.2 branch from 339d0e6 to 611b4d3 Compare November 20, 2026 09:12
@github-actions
github-actions Bot merged commit 636d7d6 into main Nov 20, 2026
23 checks passed
@dependabot
dependabot Bot deleted the dependabot/pip/clients/py/httpx2-gte-2.16.2 branch November 20, 2026 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants