Skip to content

chore(deps): update httpx2 requirement from >=2.16.0 to >=2.17.1 - #34

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/httpx2-gte-2.17.1
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/httpx2-gte-2.17.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 6, 2026

Copy link
Copy Markdown

Updates the requirements on httpx2 to permit the latest version.

Release notes

Sourced from httpx2's releases.

v2.17.1

🦥 httpcore2 imports under PYTHON_LAZY_IMPORTS=all

httpx2 and httpcore2 2.17.1 are a patch release with one fix. You will notice it if you run Python 3.15 with PYTHON_LAZY_IMPORTS=all. On 2.17.0, httpx2.Client() and import httpcore2 failed in that mode.

pip install --upgrade httpx2==2.17.1
  • httpcore2 no longer fails to import with lazy imports enabled (#1367). It raised AttributeError: 'lazy_import' object has no attribute '__module__', because httpcore2/__init__.py set __module__ on names that were still lazy placeholders. Each class and function now sets it in the module that defines it, so public names still report httpcore2 as their module.

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

⚠️ truststore still needs a release

httpx2.Client() can still fail in this mode with NameError: name '_api' is not defined, raised by truststore 0.10.5. That is fixed in sethmlarson/truststore#265, which is not in a release yet.

Full changelog: v2.17.0...v2.17.1

Changelog

Sourced from httpx2's changelog.

2.17.1 (December 2nd, 2026)

No changes since 2.17.0. Version bumped to stay in lockstep with httpcore2.

2.17.0 (November 30th, 2026)

Changed

  • Cache the parsed form of the 128 most recent URL strings of up to 2,048 characters. Repeated requests to the same URL skip parsing and validation. The cached strings, including any credentials in them, stay in memory until they are evicted. (#1256)
  • Give the cookie jar the request URL without userinfo, query or fragment, and with at most 1024 bytes of path. Cookie handling no longer gets slower or uses more memory as the URL gets longer. A response to a URL whose directory is longer than 1024 bytes sets and deletes no cookies, and http://user:pass@example.org/ now shares cookies with http://example.org/. (#1342)
  • Treat [fe80::1%25en0] and [fe80::1%en0] as the same host. URL.host returns the zone decoded, as fe80::1%en0, and str(url) and URL.netloc always write %25. A URL in the %25 form failed to connect before. Cookies saved under a bare %en0 URL no longer match after upgrading. (#1361)
  • Raise TypeError when Timeout is built from an unsupported value, such as an httpx.Timeout. Before, the request failed later, while connecting. (#1348)
  • Name the header in the UnicodeEncodeError raised when a header value cannot be encoded. The message now ends with (header 'auth'). (#1371)
  • Skip copying the client headers on requests that pass no headers=. (#1375)

Fixed

  • Apply uds, local_address, retries and socket_options to the connection to an HTTP proxy, and retries to the connection to a SOCKS proxy. HTTPTransport and AsyncHTTPTransport silently ignored them when proxy was set. SOCKS proxies still do not support uds, local_address and socket_options. (#1172)
  • Stop raising RuntimeError: aclose(): asynchronous generator is already running when the event loop shuts down, or the garbage collector runs, with streamed responses still open. Response.aiter_bytes() no longer calls aiter_raw(), so overriding aiter_raw() no longer affects aiter_bytes(), aiter_text(), aiter_lines() and aread(). (#1281)
  • Omit the IPv6 zone from the Host header. A request to http://[fe80::1%en0]/ sent Host: [fe80::1%en0], which servers such as Apache and lighttpd reject. (#1360)
  • Keep the cookie policy when copying Cookies. A policy on the client jar, such as one with blocked_domains, was ignored on requests that passed cookies=. (#1314)
  • Let a second Response.aclose() close the stream after the first call was cancelled or raised. Before, the response was already marked as closed and the stream stayed open. (#1353)
  • Set response.elapsed when a transport returns a response that is already closed, such as a MockTransport handler returning Response(200, json=...). It raised RuntimeError before. (#1376)

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.

... (truncated)

Commits
  • 215a2cd Prepare version 2.17.1 (#1384)
  • cf13c4b Prepare version 2.17.0 (#1377)
  • 4ff322c Forward uds, local_address and retries to proxied connections (#1172)
  • 269ada1 Cache recent URL parse results (#1256)
  • a33bb50 Set elapsed when a transport returns an already closed response (#1376)
  • c8651c8 Skip the empty cancellation shield and the redundant header copy on each requ...
  • 904bfc9 Name the header when its value cannot be encoded (#1371)
  • 8cd09d9 Decode the IPv6 zone delimiter when parsing a URL (#1361)
  • 5cde238 Omit the IPv6 zone from the Host header (#1360)
  • 538b256 Preserve the cookie policy when copying Cookies (#1314)
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

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.0...v2.17.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Dec 6, 2026
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