Skip to content

Deps: Bump the python-packages group across 1 directory with 12 updates - #32

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/python-packages-71fa3fdf62
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/python-packages-71fa3fdf62

Conversation

@dependabot

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

Copy link
Copy Markdown
Contributor

Bumps the python-packages group with 12 updates in the / directory:

Package From To
coverage 7.17.2 7.18.0
ruff 0.17.5 0.17.6
certifi 2026.10.23 2026.11.20
charset-normalizer 3.5.2 3.5.3
decorator 5.3.1 5.3.2
httpx2 2.16.0 2.17.0
lxml 6.1.3 6.2.1
packaging 26.3 26.4
platformdirs 4.14.5 4.14.9
semver 3.1.2 3.2.0
shtab 1.13.0 1.14.0
tomlkit 0.15.2 0.15.3

Updates coverage from 7.17.2 to 7.18.0

Release notes

Sourced from coverage's releases.

7.18.0

Version 7.18.0 — 2026-11-29

  • Feature: [run] source (and --source) entries can now be glob patterns, for example packages/*/src. A pattern is expanded to the directories it matches when measurement starts, so monorepo packages are measured, and their un-executed files reported, without listing each one. A pattern that matches nothing issues a warning. Closes issue 2400.
  • Feature: two new methods for plug-ins to use in their test suites, as requested in issue 920. The Coverage.get_plugins() method returns the currently registered plug-ins, including disabled ones. The CoveragePlugin.is_enabled() method reports their current enabled state.
  • Fix: lcov output now marks functions as starting on the first non-signature line, fixing errors about “inconsistent” tracefiles during combination. Closed issue 2394.
  • Fix: XML and LCOV reports now honor the report context filter when calculating coverage.
  • Fix: when two source roots each contained a package with the same name, the XML report kept only one of the same-named files while still counting the lines of both, so lines-valid disagreed with the <line> elements in the document. Closes issue 1291.
  • Fix: with [html] show_contexts enabled, re-running the HTML report kept pages whose lines were unchanged, even when the contexts were different, so they showed stale contexts. Closes issue 2372.
  • Fix: with the C tracer and branch coverage, an error while starting to trace a function call (for example, RecursionError from should_trace when a new file is entered near the recursion limit) left the previous call’s file in place. If the exception was caught, the function’s return recorded arcs in that other file, which could report lines as executed that never ran. Now a call that fails to start records nothing, closing issue 2385.
  • Fix: missing branch explanations for exits from a finally clause could incorrectly say a condition was always true, even when it was false while an exception or return was pending. These explanations now describe the missing jump without attributing it solely to the condition. Fixes issue 867.
  • Fix: if a directory for the data file or a report couldn’t be created, the error was a raw traceback. Now the error message names the file that was being written.
  • Perf: line coverage reports are faster when many measurement contexts cover the same file.

➡️  PyPI page: coverage 7.18.0. :arrow_right:  To install: python3 -m pip install coverage==7.18.0

7.17.5

Version 7.17.5 — 2026-11-23

  • Fix: the reporting commands (report, html, xml, json, lcov, and annotate) used to put the current directory first on sys.path, to let plugins import local files. Now the current directory is added only if plugins are configured, and at the end of sys.path, so local files can’t replace other modules.
  • Fix: local plugins interfered with erase and combine as reported in issue 1726 and issue 1979. This is now fixed (pull 2253).
  • Fix: with the sysmon core on Python 3.14, starting and stopping a second Coverage object stopped the first one from measuring code it had already run. Closes issue 2302.
  • Fix: combining data files failed with “Conflicting file tracer name” when one data file only listed a file without measuring it (as unexecuted source files are) and another measured the same file with a plugin. This happened in pytest-cov’s distributed testing. Now a file with no measurements doesn’t conflict with a plugin’s measurements. Fixes issue 2358.
  • Fix: saving data while another thread started measuring a new file handled by a plugin could fail with “dictionary changed size during iteration”. Fixed in pull 2382.
  • Fix: a keyboard interrupt at just the wrong moment could leave a lock locked and prevent saving data, as reported in issue 2383. This is now fixed (pull 2396).

➡️  PyPI page: coverage 7.17.5. :arrow_right:  To install: python3 -m pip install coverage==7.17.5

7.17.4

Version 7.17.4 — 2026-11-20

  • Fix: since 7.13.1, a parallel data file could be named with the hash of different data than it held, for example when nbval records a notebook’s coverage into pytest-cov’s data file. Combining could then skip it as a duplicate and lose its data. Now the hash comes from the data in the file when it is saved. Fixes issue 2370 with pull 2387.
  • Fix: lines or arcs recorded by other threads while data was being flushed (for example during Coverage.get_data(), Coverage.save(), or dynamic context switches) could be lost. This is now fixed, closing issue 2384.
  • Fix: on Python 3.14 with the pure-Python tracer (COVERAGE_CORE=pytrace) and branch measurement, a function that returned right after an except* handler recorded an arc with no line number. Reporting on the data then failed with a TypeError. Now that arc is not recorded. pull 2403.
  • Fix: in the JSON report with show_contexts, each function and class had the contexts for every line in the file. Now they only have the contexts for their own lines. Closes issue 2374.
  • The first entry in a [paths] list is the result path, and must be an actual file path. If it contained wildcards, the rule could never be used and was silently ignored. It is now reported as a configuration error. Closes issue 1531.
  • Fix: a configuration file (.coveragerc, setup.cfg, tox.ini or pyproject.toml) saved with a UTF-8 byte order mark couldn’t be read. Now a leading BOM is ignored. pull 2388.

➡️  PyPI page: coverage 7.17.4. :arrow_right:  To install: python3 -m pip install coverage==7.17.4

7.17.3

Version 7.17.3 — 2026-11-11

  • Fix: using patch = fork, a child process wasn’t measured unless patch = subprocess was also used, as described in issue 2340. This is now fixed in pull 2342.
  • Fix: the JSON report keys functions and classes by name, but names can repeat, for example a property getter and setter. Only the last one was kept, so the others were missing from the report. Now repeated names get a @<line number> suffix, as in the LCOV report. pull 2353.
  • Fix: when combining parallel data files, a file that disappears after it has been listed (for example, when the process writing it is still finishing its write) is now reported with a warning, instead of stopping the combine with a DataError. This was a regression in 7.17.1. Closes issue 2364.
  • Fix: with patch = subprocess on Python 3.13, a measured subprocess that was stopped with SIGINT would exit with status 1 instead of dying from the signal. This was a regression in 7.17.1, and is now fixed, closing issue 2362.

... (truncated)

Changelog

Sourced from coverage's changelog.

Version 7.18.0 — 2026-11-29

  • Feature: [run] source (and --source) entries can now be glob patterns, for example packages/*/src. A pattern is expanded to the directories it matches when measurement starts, so monorepo packages are measured, and their un-executed files reported, without listing each one. A pattern that matches nothing issues a warning. Closes issue 2400_.

  • Feature: two new methods for plug-ins to use in their test suites, as requested in issue 920_. The :meth:.Coverage.get_plugins method returns the currently registered plug-ins, including disabled ones. The :meth:.CoveragePlugin.is_enabled method reports their current enabled state.

  • Fix: lcov output now marks functions as starting on the first non-signature line, fixing errors about "inconsistent" tracefiles during combination. Closed issue 2394_.

  • Fix: XML and LCOV reports now honor the report context filter when calculating coverage.

  • Fix: when two source roots each contained a package with the same name, the XML report kept only one of the same-named files while still counting the lines of both, so lines-valid disagreed with the <line> elements in the document. Closes issue 1291_.

  • Fix: with [html] show_contexts enabled, re-running the HTML report kept pages whose lines were unchanged, even when the contexts were different, so they showed stale contexts. Closes issue 2372_.

  • Fix: with the C tracer and branch coverage, an error while starting to trace a function call (for example, RecursionError from should_trace when a new file is entered near the recursion limit) left the previous call's file in place. If the exception was caught, the function's return recorded arcs in that other file, which could report lines as executed that never ran. Now a call that fails to start records nothing, closing issue 2385_.

  • Fix: missing branch explanations for exits from a finally clause could incorrectly say a condition was always true, even when it was false while an exception or return was pending. These explanations now describe the missing jump without attributing it solely to the condition. Fixes issue 867_.

  • Fix: if a directory for the data file or a report couldn't be created, the error was a raw traceback. Now the error message names the file that was being written.

  • Performance: line coverage reports are faster when many measurement contexts cover the same file.

... (truncated)

Commits
  • 3fd8953 docs: sample HTML for 7.18.0
  • c9f8062 docs: prep for 7.18.0
  • cb613b4 ci: get ready for merge queue
  • 8d9c7c4 fix: a failed call in the C tracer records nothing #2385 (#2386)
  • 1531afa fix: honor context filters in XML and LCOV reports (#2418)
  • 6e3f185 fix(xml): keep same-named files from different source roots (closes #1291) (#...
  • bc83928 chore: bump the action-dependencies group with 2 updates (#2425)
  • dbb7446 fix: html report needs to notice when only contexts change #2372 (#2373)
  • 4365f41 docs: another issue closed
  • 49003e3 fix: make directory creation error messages more specific
  • Additional commits viewable in compare view

Updates ruff from 0.17.5 to 0.17.6

Release notes

Sourced from ruff's releases.

0.17.6

Release Notes

Released on 2026-11-19.

Preview features

  • [flake8-type-checking] Add a fix for runtime-string-union (TC010) (#15635)

Bug fixes

  • Fix handling of parenthesized duplicate items (B033, RUF068) (#30493)
  • [pyflakes] Fix false negative when a name is assigned more than once (F823) (#30524)
  • [pylint] Avoid false positive when collection is modified in loop (PLR1733, PLR1736) (#30466)
  • [ruff] Avoid syntax error in useless-finally fix for inline try bodies (RUF072) (#30349)
  • Treat relative imports from .__future__ as ordinary imports (#30260)

Rule changes

  • [flake8-simplify] Avoid redundant bool wrappers in SIM208 fixes (#30457)
  • [pyflakes] Ignore __traceback_hide__ in unused-variable (F841) (#29600)

Performance

  • Decode in-memory notebooks directly from their source string (#30385)
  • Short-circuit exact qualified-name checks (#30058)
  • Stream JSON diagnostics to the output writer (#30384)

Documentation

  • Fix the multiline string example in Known Deviations from Black (#30447)
  • Include the category in individual rule documentation pages (#30503)

Other changes

  • Update Rust toolchain to 1.100 and MSRV to 1.98 (#30416)

Contributors

... (truncated)

Changelog

Sourced from ruff's changelog.

0.17.6

Released on 2026-11-19.

Preview features

  • [flake8-type-checking] Add a fix for runtime-string-union (TC010) (#15635)

Bug fixes

  • Fix handling of parenthesized duplicate items (B033, RUF068) (#30493)
  • [pyflakes] Fix false negative when a name is assigned more than once (F823) (#30524)
  • [pylint] Avoid false positive when collection is modified in loop (PLR1733, PLR1736) (#30466)
  • [ruff] Avoid syntax error in useless-finally fix for inline try bodies (RUF072) (#30349)
  • Treat relative imports from .__future__ as ordinary imports (#30260)

Rule changes

  • [flake8-simplify] Avoid redundant bool wrappers in SIM208 fixes (#30457)
  • [pyflakes] Ignore __traceback_hide__ in unused-variable (F841) (#29600)

Performance

  • Decode in-memory notebooks directly from their source string (#30385)
  • Short-circuit exact qualified-name checks (#30058)
  • Stream JSON diagnostics to the output writer (#30384)

Documentation

  • Fix the multiline string example in Known Deviations from Black (#30447)
  • Include the category in individual rule documentation pages (#30503)

Other changes

  • Update Rust toolchain to 1.100 and MSRV to 1.98 (#30416)

Contributors

Commits
  • a7ba68b Bump version to 0.17.6 (#30578)
  • 3067e15 [ty] Fix lambda parameter inference with an unsolved ParamSpec (#30547)
  • 7aae7a5 Treat relative imports from .__future__ as ordinary imports (#30260)
  • dcc9519 Separate Ruff configuration loading from settings resolution (#30574)
  • c6c706a Avoid repeated scans of unclosed script metadata blocks (#30571)
  • 17ff3e8 Clarify Ruff's root settings and resolver entries (#30573)
  • 1b93171 [ty] Add NumPy to ecosystem runs (#30572)
  • c117517 Resolve configuration roots directly from their origin (#30569)
  • 700c1e8 [ty] Move NamedTupleLike to ty_extensions._internal (#30567)
  • 981d44c [ty] Rename uv-metadata diagnostic to project-manager and improve its wor...
  • Additional commits viewable in compare view

Updates certifi from 2026.10.23 to 2026.11.20

Commits

Updates charset-normalizer from 3.5.2 to 3.5.3

Release notes

Sourced from charset-normalizer's releases.

Version 3.5.3

3.5.3 (2026-11-23)

Changed

  • Faster noise scoring in both the pure-Python and Cython implementations by reusing Unicode character properties. The Cython extensions also speed up language ranking and checks for suspicious transitions between Unicode blocks.
  • Reduced detection overhead by skipping redundant UTF-8 sample alignment checks and repeated logging checks when tracing is disabled.
  • Raised the setuptools upper bound to <84.3, allowing source builds with setuptools 84.1 and 84.2. (#828)

Fixed

  • Fixed detection of registered multibyte codecs when a sample boundary splits a character. The detector now strictly decodes the full input with the custom codec before sampling the resulting text.
  • Kept single-byte candidates in consideration when a Chinese, Japanese or Korean decoding has measurable noise and no matching language.
  • Recognized ASCII information separators (0x1C through 0x1F) as whitespace when scoring text, including record-separated JSON. (#821)
  • Removed the leading GB18030 signature from lazily decoded matches on large inputs. (#820)
  • Fixed UTF-7 text with a signature being misidentified as ASCII when a sample started in the middle of a long encoded sequence. (#839)
  • Fixed language detection returning names such as English— when only an alternative language profile met the coherence threshold. (#823)
  • CharsetMatch.output() now updates a UTF-8 declaration when transcoding to another encoding and preserves the last successful output if a later conversion fails. (#819, #814)
  • The legacy detect() function now reports ISO-8859-1 for Latin-1 by default. (#813)
  • Both python -m charset_normalizer and python -m charset_normalizer.cli now propagate the CLI exit status. (#817)
  • CLI JSON output with --with-alternative now always uses a top-level array, including for a single result or a file with no match. (#822)
  • normalizer --normalize now appends the detected encoding to extensionless filenames when creating a copy (for example, README becomes README.cp1252). (#838)
  • Excluded Python 3.16's utf_7_imap mailbox codec from detection to prevent errors when probing unrelated encodings. (#825)
Changelog

Sourced from charset-normalizer's changelog.

3.5.3 (2026-11-23)

Changed

  • Faster noise scoring in both the pure-Python and Cython implementations by reusing Unicode character properties. The Cython extensions also speed up language ranking and checks for suspicious transitions between Unicode blocks.
  • Reduced detection overhead by skipping redundant UTF-8 sample alignment checks and repeated logging checks when tracing is disabled.
  • Raised the setuptools upper bound to <84.3, allowing source builds with setuptools 84.1 and 84.2. (#828)

Fixed

  • Fixed detection of registered multibyte codecs when a sample boundary splits a character. The detector now strictly decodes the full input with the custom codec before sampling the resulting text.
  • Kept single-byte candidates in consideration when a Chinese, Japanese or Korean decoding has measurable noise and no matching language.
  • Recognized ASCII information separators (0x1C through 0x1F) as whitespace when scoring text, including record-separated JSON. (#821)
  • Removed the leading GB18030 signature from lazily decoded matches on large inputs. (#820)
  • Fixed UTF-7 text with a signature being misidentified as ASCII when a sample started in the middle of a long encoded sequence. (#839)
  • Fixed language detection returning names such as English— when only an alternative language profile met the coherence threshold. (#823)
  • CharsetMatch.output() now updates a UTF-8 declaration when transcoding to another encoding and preserves the last successful output if a later conversion fails. (#819, #814)
  • The legacy detect() function now reports ISO-8859-1 for Latin-1 by default. (#813)
  • Both python -m charset_normalizer and python -m charset_normalizer.cli now propagate the CLI exit status. (#817)
  • CLI JSON output with --with-alternative now always uses a top-level array, including for a single result or a file with no match. (#822)
  • normalizer --normalize now appends the detected encoding to extensionless filenames when creating a copy (for example, README becomes README.cp1252). (#838)
  • Excluded Python 3.16's utf_7_imap mailbox codec from detection to prevent errors when probing unrelated encodings. (#825)
Commits
  • 0b45fe2 chore: release 3.5.3 (#843)
  • 6f5ffe3 chore(deps): bump pypa/cibuildwheel from 4.2.1 to 4.3.5 (#831)
  • 63a18e5 chore(deps): bump actions/setup-python from 7.0.0 to 7.1.0 (#832)
  • d5309e6 Fix --normalize output name for files without an extension (#838)
  • 9c196df Sample UTF-7 chunks from the decoded payload (#839)
  • c6b0556 chore(ci): reorder steps deps chain
  • a9c5126 chore(ci): fix cibw test command
  • c65b72b Merge pull request #842 from jawah/pre-v3.5.3
  • 7abdb20 chore: draft pending 3.5.3 changelog entries
  • 82b1692 docs: update README
  • Additional commits viewable in compare view

Updates decorator from 5.3.1 to 5.3.2

Changelog

Sourced from decorator's changelog.

5.3.2 (2026-11-21)

Added official support for Python 3.15.

Preserved each layer of __wrapped__ when stacking decorators or wrapping an already decorated caller (contributed by Jake Wang).

Fixed FunctionMaker.create raising a SyntaxError when the signature string contains a return annotation, e.g. create("f(a) -> int", "return a") (contributed by Apoorv Darshan).

Generator functions decorated with a generator caller now return the value returned by the caller, instead of always returning None (contributed by Huanyi Xie).

Fixed dispatch_on raising StopIteration when called with an unregistered object() instance: now the default implementation is called (contributed by Muneeb Sheikh).

Corrected the return types of getfullargspec and inspect_sig in the stub file (contributed by Huanyi Xie).

Added homepage and repository links to the package metadata (contributed by the GitHub user Sinkleberg).

Fixed dispatch_on raising a TypeError when an implementation is registered for a virtual ancestor of a type that cannot be subclassed, like range, memoryview or bool, or of an enum (reported by Rajatendu Dey). Also fixed dispatch_on raising a TypeError when a class is passed as a dispatch argument.

Decorating a functools.partial no longer alters the original partial (adding __wrapped__ and changing its signature), so decorating the same partial twice no longer rejects valid calls (contributed by Gabriel Demetrios Lafis).

FunctionMaker now preserves positional-only parameters, so functions decorated with decoratorx or generated by dispatch_on reject positional-only arguments passed by name, and accept keyword arguments with the same name in **kwargs (contributed by Gabriel Demetrios Lafis).

getfullargspec, now reimplemented on top of inspect.signature, does not follow __wrapped__, like inspect.getfullargspec, so decoratorx and dispatch_on keep working with functions decorated by functools.wraps (contributed by Tejesh Vaish).

In Python 3.14+ FunctionMaker copies the deferred annotations of the original function without evaluating them, so decoratorx and dispatch_on work with annotations referring to names imported only under TYPE_CHECKING (issue #177, reported by the GitHub user

... (truncated)

Commits
  • 7354c68 Merge pull request #202 from micheles/python-3.15
  • 45ec9b3 Bumped the version to 5.3.2
  • b6cffcd Use uvx in the Makefile and include only the package files in the sdist
  • d94cac3 Added Python 3.15 to the CI matrix and to the supported versions
  • 8ffdb86 Merge pull request #201 from micheles/fix-177-deferred-annotations
  • 236dd6b Updated CHANGES.md
  • b6db96b Copy deferred annotations in FunctionMaker without evaluating them
  • f0ce939 Merge pull request #200 from micheles/cleanup
  • 515d158 Updated CHANGES.md
  • 73e175a Do not follow wrapped in getfullargspec and FunctionMaker
  • Additional commits viewable in compare view

Updates httpx2 from 2.16.0 to 2.17.0

Release notes

Sourced from httpx2's releases.

v2.17.0

⚡ Less CPU per request, and pools that scale

httpx2 and httpcore2 2.17.0 are a minor release. Requests cost less CPU, and the cost no longer climbs steeply with the number of pooled connections. Proxy options, IPv6 zones and cookies also change behaviour in a few places, so read those sections before you upgrade.

pip install --upgrade httpx2==2.17.0
  • Idle connections no longer slow down every request (#1352). httpcore2 polled every idle HTTP/1.1 socket at the start and end of each request. It now checks only the connection it is about to reuse. A connection that the server closed stays in the pool until it is reused, its keep-alive expires, or it is evicted.
  • Repeated URLs are parsed once (#1256). The 128 most recent URL strings of up to 2,048 characters are cached. The cached strings, including any credentials in them, stay in memory until they are evicted.
  • Less fixed work on every request (#1372, #1375). An empty cancellation shield, a copy of the client headers, and a repeated socket lookup are skipped.

🧭 Transport options now reach the proxy

  • uds, local_address, retries and socket_options apply to HTTP proxy connections (#1172). HTTPTransport and AsyncHTTPTransport silently ignored them when proxy was set. If you already pass them together with a proxy, they now take effect. For example, uds sends the proxy connection over the Unix socket.
  • retries works with SOCKS proxies (#1172). The TCP connection to the proxy is retried with the same backoff as a direct connection. SOCKS proxies still do not support uds, local_address and socket_options.

🌐 IPv6 zones and cookies

  • [fe80::1%25en0] and [fe80::1%en0] are the same host (#1361). 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.
  • The zone is not sent in the Host header (#1360). A request to http://[fe80::1%en0]/ sent Host: [fe80::1%en0], which servers such as Apache and lighttpd reject.
  • Cookie handling no longer slows down with long URLs (#1342). The cookie jar gets the request URL without userinfo, query or fragment, and with at most 1024 bytes of path. 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/.
  • Copying Cookies keeps its policy (#1314). A policy on the client jar, such as one with blocked_domains, was ignored on requests that passed cookies=.

🧹 Responses, timeouts and errors

  • Open streamed responses no longer raise at shutdown (#1281). RuntimeError: aclose(): asynchronous generator is already running could appear when the event loop shut down, or the garbage collector ran, 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().
  • Response.aclose() can be retried (#1353). After a close that was cancelled or raised, the response was already marked as closed and the stream stayed open. A second call now closes it.
  • response.elapsed is set for responses that arrive closed (#1376). It raised RuntimeError when a transport returned a loaded response, such as a MockTransport handler returning Response(200, json=...).
  • Timeout rejects unsupported values when it is built (#1348). A value such as an httpx.Timeout now raises TypeError up front. Before, the request failed later, while connecting.
  • Header encoding errors name the header (#1371). The UnicodeEncodeError for a header value that cannot be encoded now ends with (header 'auth').

📊 Benchmark against 2.16.2

Requests per second for httpx2 2.16.2 and 2.17.0 in six scenarios

Scenario 2.16.2 2.17.0 Change
1 connection, GET 1 KiB 3,140 rps 4,143 rps +32%
16 connections, GET 1 KiB 3,981 rps 4,786 rps +20%
128 connections, GET 1 KiB 2,833 rps 3,712 rps +31%
512 connections, GET 1 KiB 498 rps 2,046 rps 4.1x
64 connections, GET 100 KiB 2,928 rps 3,631 rps +24%
64 connections, POST 1 KiB 3,322 rps 4,115 rps +24%

These are medians of 7 rounds of scripts/benchmark --mode read on local loopback (CPython 3.14, stdlib asyncio, macOS arm64). 2.17.0 was faster in every round of every scenario. They come from one machine, so read them as a direction, not a guarantee.

Full changelog: v2.16.2...v2.17.0

... (truncated)

Changelog

Sourced from httpx2's changelog.

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. (#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)
Commits
  • 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)
  • 0022c4b Let a cancelled or failed Response.aclose() be retried (#1353)
  • Additional commits viewable in compare view

Updates lxml from 6.1.3 to 6.2.1

Changelog

Sourced from lxml's changelog.

6.2.1 (2026-11-29)

This release fixes regressions in lxml 6.2.0 and covers more edge cases for its security fixes. Upgrading is recommended.

Bugs fixed

  • GH#620: Pull parsers with a parser target failed on comments and processing instructions when collecting comment or pi events since lxml 6.2.0. Patch by Pierre-Yves Le Borgne.

  • LP#2178248: The parser target's .start() callback method stopped receiving a namespace mapping dict in lxml 6.2.0 if no .end_ns() method was also provided.

  • GHSA-59qx-3jjv-x996, GH#619: The fix in lxml 6.2.0 did not work with libxml2 < 2.13, which parses entities in a separate parser context. iterparse() and XMLPullParser could still crash with it on entities that fail to parse, but also on comments and PIs in entities and on entities that are referenced more than once. Patch by Pierre-Yves Le Borgne.

  • GHSA-59qx-3jjv-x996, GH#619: The fix in lxml 6.2.0 did not cover parsers with resolve_entities=False. libxml2 also parses the internal entities that it does not substitute, and iterparse() and XMLPullParser could still crash on such entities that fail to parse. Patch by Pierre-Yves Le Borgne.

  • GHSA-59qx-3jjv-x996, GH#619: An XMLPullParser that was fed again after a parse error reported left-over events of the failed document, which could refer to elements that were already freed. Patch by Pierre-Yves Le Borgne.

  • LP#2178276: The sdist was missing from the Github release upload.

6.2.0 (2026-11-27)

This release contains several security fixes. Upgrading is recommended.

Bugs fixed

  • GHSA-23p9-v872-36p9: Passing CDATA() wrapped content ending with a bare ] character into an xmlfile reads arbitrary data from the Python heap and includes it in the generated XML document. This allows reading random content from the application memory and/or crashing the application. Issue found by shaggitza.

  • GHSA-59qx-3jjv-x996: Parsing a document defining a non-wellformed entity with the default configuration of iterparse() could crash the application. This issue is network exploitable if the application parses untrusted documents from remote sites.

... (truncated)

Commits
  • a5004e9 Update changelog.
  • be22351 Prepare release of 6.2.1.
  • d60cec1 Build: Provide debug information if a library download retrieves something el...
  • 9932a93 GHSA-59qx-3jjv-x996: Also postpone parse events with libxml2 < 2.13, with res...
  • f640934 Update changelog.
  • 807d743 Split _pushSaxStartEvent() to specialise it for the target/no-target cases th...
  • 588e389 Always report the nsmap to a parser target's start() method, not just when as...
  • f2d5e3d Fix the 'comment' and 'pi' events of pull parsers with a parser target (GH-620)
  • 7e0baee Build: Include sdist in release upload.
  • ae5dfef Build: Use already downloaded libxml2/libxslt archives without network access...
  • Additional commits viewable in Description has been truncated

Bumps the python-packages group with 12 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [coverage](https://github.com/coveragepy/coveragepy) | `7.17.2` | `7.18.0` |
| [ruff](https://github.com/astral-sh/ruff) | `0.17.5` | `0.17.6` |
| [certifi](https://github.com/certifi/python-certifi) | `2026.10.23` | `2026.11.20` |
| [charset-normalizer](https://github.com/jawah/charset_normalizer) | `3.5.2` | `3.5.3` |
| [decorator](https://github.com/micheles/decorator) | `5.3.1` | `5.3.2` |
| [httpx2](https://github.com/pydantic/httpx2) | `2.16.0` | `2.17.0` |
| [lxml](https://github.com/lxml/lxml) | `6.1.3` | `6.2.1` |
| [packaging](https://github.com/pypa/packaging) | `26.3` | `26.4` |
| [platformdirs](https://github.com/tox-dev/platformdirs) | `4.14.5` | `4.14.9` |
| [semver](https://github.com/python-semver/python-semver) | `3.1.2` | `3.2.0` |
| [shtab](https://github.com/tqdm/shtab) | `1.13.0` | `1.14.0` |
| [tomlkit](https://github.com/python-poetry/tomlkit) | `0.15.2` | `0.15.3` |



Updates `coverage` from 7.17.2 to 7.18.0
- [Release notes](https://github.com/coveragepy/coveragepy/releases)
- [Changelog](https://github.com/coveragepy/coveragepy/blob/main/CHANGES.rst)
- [Commits](coveragepy/coveragepy@7.17.2...7.18.0)

Updates `ruff` from 0.17.5 to 0.17.6
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@0.17.5...0.17.6)

Updates `certifi` from 2026.10.23 to 2026.11.20
- [Commits](certifi/python-certifi@2026.10.23...2026.11.20)

Updates `charset-normalizer` from 3.5.2 to 3.5.3
- [Release notes](https://github.com/jawah/charset_normalizer/releases)
- [Changelog](https://github.com/jawah/charset_normalizer/blob/master/CHANGELOG.md)
- [Commits](jawah/charset_normalizer@3.5.2...3.5.3)

Updates `decorator` from 5.3.1 to 5.3.2
- [Release notes](https://github.com/micheles/decorator/releases)
- [Changelog](https://github.com/micheles/decorator/blob/master/CHANGES.md)
- [Commits](micheles/decorator@5.3.1...5.3.2)

Updates `httpx2` from 2.16.0 to 2.17.0
- [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.0)

Updates `lxml` from 6.1.3 to 6.2.1
- [Release notes](https://github.com/lxml/lxml/releases)
- [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt)
- [Commits](lxml/lxml@lxml-6.1.3...lxml-6.2.1)

Updates `packaging` from 26.3 to 26.4
- [Release notes](https://github.com/pypa/packaging/releases)
- [Changelog](https://github.com/pypa/packaging/blob/main/CHANGELOG.rst)
- [Commits](pypa/packaging@26.3...26.4)

Updates `platformdirs` from 4.14.5 to 4.14.9
- [Release notes](https://github.com/tox-dev/platformdirs/releases)
- [Changelog](https://github.com/tox-dev/platformdirs/blob/main/docs/changelog.rst)
- [Commits](tox-dev/platformdirs@4.14.5...4.14.9)

Updates `semver` from 3.1.2 to 3.2.0
- [Release notes](https://github.com/python-semver/python-semver/releases)
- [Changelog](https://github.com/python-semver/python-semver/blob/master/CHANGELOG.rst)
- [Commits](python-semver/python-semver@3.1.2...3.2.0)

Updates `shtab` from 1.13.0 to 1.14.0
- [Release notes](https://github.com/tqdm/shtab/releases)
- [Commits](tqdm/shtab@v1.13.0...v1.14.0)

Updates `tomlkit` from 0.15.2 to 0.15.3
- [Release notes](https://github.com/python-poetry/tomlkit/releases)
- [Changelog](https://github.com/python-poetry/tomlkit/blob/master/CHANGELOG.md)
- [Commits](python-poetry/tomlkit@0.15.2...0.15.3)

---
updated-dependencies:
- dependency-name: coverage
  dependency-version: 7.18.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: python-packages
- dependency-name: ruff
  dependency-version: 0.17.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: python-packages
- dependency-name: certifi
  dependency-version: 2026.11.20
  dependency-type: indirect
  update-type: version-update:semver-minor
  dependency-group: python-packages
- dependency-name: charset-normalizer
  dependency-version: 3.5.3
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: python-packages
- dependency-name: decorator
  dependency-version: 5.3.2
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: python-packages
- dependency-name: httpx2
  dependency-version: 2.17.0
  dependency-type: indirect
  update-type: version-update:semver-minor
  dependency-group: python-packages
- dependency-name: lxml
  dependency-version: 6.2.1
  dependency-type: indirect
  update-type: version-update:semver-minor
  dependency-group: python-packages
- dependency-name: packaging
  dependency-version: '26.4'
  dependency-type: indirect
  update-type: version-update:semver-minor
  dependency-group: python-packages
- dependency-name: platformdirs
  dependency-version: 4.14.9
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: python-packages
- dependency-name: semver
  dependency-version: 3.2.0
  dependency-type: indirect
  update-type: version-update:semver-minor
  dependency-group: python-packages
- dependency-name: shtab
  dependency-version: 1.14.0
  dependency-type: indirect
  update-type: version-update:semver-minor
  dependency-group: python-packages
- dependency-name: tomlkit
  dependency-version: 0.15.3
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: python-packages
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot requested a review from a team as a code owner December 3, 2026 04:28
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Dec 3, 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