Bump the python-packages group across 1 directory with 16 updates
Updates the requirements on chardet, coverage[toml], cryptography, pytest-codspeed, pytest-httpbin, trio, uvicorn, websockets, mypy, ruff, build, twine, zensical, mkdocstrings[python], aiohttp and click to permit the latest version.
Updates chardet from 6.0.0.post1 to 7.4.3
Release notes
Sourced from chardet's releases.
7.4.3
Patch release: fixes a crash when input contains null bytes inside a
<meta charset>declaration.Bug Fixes
- Fixed
ValueError: embedded null charactercrash when input contained a<meta charset>declaration with a null byte in the encoding name (e.g.b'<meta charset="\x00utf-8">').codecs.lookup()raisesValueErroron embedded nulls, andlookup_encoding()was only catchingLookupError. Also added defensiveValueErrorcatches in_validate_bytes()and_to_utf8()for completeness. (#369, thanks@DRMacIverfor the report)Full Changelog: https://github.com/chardet/chardet/compare/7.4.2...7.4.3
7.4.2
Patch release: fixes a crash on short inputs and closes a bunch of WHATWG/IANA alias gaps.
Bug Fixes
- Fixed
RuntimeError: pipeline must always return at least one resulton ~2% of all possible two-byte inputs (e.g.b"\xf9\x92"). Multi-byte encodings like CP932 and Johab could score above the structural confidence threshold on very short inputs, but then statistical scoring would return nothing, leaving an empty result list instead of falling through to the fallback. (#367, #368, thanks@jasonwbarnett)Improvements
- Added ~90 encoding aliases from the WHATWG Encoding Standard and IANA Character Sets registry so that
<meta charset>labels likex-cp1252,x-sjis,dos-874,csUTF8, and thecswindows*family all resolve correctly through the markup detection stage. Every alias was driven by a failing spec-compliance test, not speculative. (#366)- Added a spec-compliance test suite covering Python decode round-trips for all 86 registry encodings, WHATWG label resolution, IANA preferred MIME names, and Unicode/RFC conformance (BOM sniffing, UTF-8 boundary cases, UTF-16 surrogate pairs). This is the test suite that would have caught the 7.4.1 BOM bug before release. (#366)
Full Changelog: https://github.com/chardet/chardet/compare/7.4.1...7.4.2
7.4.1
Bug Fixes
- BOM-prefixed UTF-16/32 input now returns
utf-16/utf-32instead ofutf-16-le/utf-16-be/utf-32-le/utf-32-be. The endian-specific codecs don't strip the BOM on decode, so callers were getting a stray U+FEFF at the start of their text. BOM-less detection is unchanged. (#364, #365)Full Changelog: https://github.com/chardet/chardet/compare/7.4.0...7.4.1
chardet 7.4.0 brings accuracy up to 99.3% (from 98.6% in 7.3.0) and significantly faster cold start thanks to a new dense model format.
What's New
Performance:
- New dense zlib-compressed model format (v2) drops cold start (import + first detect) from ~75ms to ~13ms with mypyc
Accuracy (98.6% → 99.3%):
- Eliminated train/test data overlap via content fingerprinting
- Added MADLAD-400 and Wikipedia as supplemental training sources
- Improved non-ASCII bigram scoring: high-byte bigrams are now preserved during training and weighted by per-bigram IDF
- Encoding-aware substitution filtering (substitutions only apply for characters the target encoding can't represent)
- Increased training samples from 15K to 25K per language/encoding pair
Bug fixes:
- Added dedicated structural analyzers for CP932, CP949, and Big5-HKSCS (these were previously sharing their base encoding's byte-range analyzer, missing extended ranges)
Metrics
| | chardet 7.4.0 (mypyc) | chardet 6.0.0 | charset-normalizer 3.4.6 |
... (truncated)
Changelog
Sourced from chardet's changelog.
7.4.3 (2026-04-13)
Bug Fixes:
- Fixed
ValueError: embedded null charactercrash when input contained a<meta charset>declaration with a null byte in the encoding name (e.g.b'<meta charset="\x00utf-8">').codecs.lookup()raisesValueErroron embedded nulls, andlookup_encoding()was only catchingLookupError. Also added defensiveValueErrorcatches in_validate_bytes()and_to_utf8()for completeness. (Dan Blanchard <https://github.com/dan-blanchard>_ via Claude,[#369](https://github.com/chardet/chardet/issues/369) <https://github.com/chardet/chardet/issues/369>_)7.4.2 (2026-04-12)
Bug Fixes:
- Fixed
RuntimeError: pipeline must always return at least one resulton ~2% of all possible two-byte inputs (e.g.b"\xf9\x92"). Multi-byte encodings like CP932 and Johab could score above the structural confidence threshold on very short inputs, but then statistical scoring would return nothing, leaving the pipeline with an empty result list instead of falling through to theno_match_encodingfallback. (Jason Barnett <https://github.com/jasonwbarnett>_ via Claude,[#367](https://github.com/chardet/chardet/issues/367) <https://github.com/chardet/chardet/issues/367>,[#368](https://github.com/chardet/chardet/issues/368) <https://github.com/chardet/chardet/pull/368>)Improvements:
- Added ~90 encoding aliases from the WHATWG Encoding Standard and IANA Character Sets registry so that
<meta charset>labels likex-cp1252,x-sjis,dos-874,csUTF8, and thecswindows*family all resolve correctly through the markup detection stage. Every alias was driven by a failing spec-compliance test. (Dan Blanchard <https://github.com/dan-blanchard>_ via Claude,[#366](https://github.com/chardet/chardet/issues/366) <https://github.com/chardet/chardet/pull/366>_)- Added a spec-compliance test suite covering Python decode round-trips for all 86 registry encodings, WHATWG web-platform label resolution, IANA preferred MIME names, and Unicode/RFC conformance (BOM sniffing, UTF-8 boundary cases, UTF-16 surrogate pairs). This is the test suite that would have caught the 7.4.1 BOM bug before release. (
Dan Blanchard <https://github.com/dan-blanchard>_ via Claude,[#366](https://github.com/chardet/chardet/issues/366) <https://github.com/chardet/chardet/pull/366>_)7.4.1 (2026-04-07)
... (truncated)
Commits
8f404a5docs: set 7.4.3 release date to 2026-04-137a6667fdocs: fix changelog attribution for #369a1fc986docs: changelog for 7.4.30af01d6Fix ValueError crash on null bytes in charset declarations (#369)08e4ebcci: parallelize riscv64 builds across 5 RISE runners2f6e1e9ci: use python3 -m pip on riscv64 runner204623dci: invoke cibuildwheel manually on riscv64 runner78c1d20ci: use native runners for aarch64/riscv64 instead of QEMU3cc0960docs: changelog for 7.4.29079efcFix RuntimeError on ~2% of two-byte inputs (#368)- Additional commits viewable in compare view
Updates coverage[toml] from 7.10.6 to 7.15.2
Release notes
Sourced from coverage[toml]'s releases.
7.15.2
Version 7.15.2 — 2026-07-15
- Fix: one of the performance improvements in 7.15.1 (pull 2215) dramatically increased memory use during reporting for large projects. Now we use a different approach that is both faster and slimmer than 7.15.0. Fixes issue 2229.
:arrow_right: PyPI page: coverage 7.15.2. :arrow_right: To install:
python3 -m pip install coverage==7.15.27.15.1
Version 7.15.1 — 2026-07-12
- Fix: in the HTML report with
show_contextsenabled, a context label containing</script>(for example a parametrized pytest node id) could close the inline<script>element in a file page early, injecting markup. Context labels are now fully escaped. Thanks, Rajath Mohare.- A number of performance improvements thanks to Paul Kehrer, in pull requests 2213, 2214, 2215, 2216, 2218, 2220, and 2221.
:arrow_right: PyPI page: coverage 7.15.1. :arrow_right: To install:
python3 -m pip install coverage==7.15.17.15.0
Version 7.15.0 — 2026-07-02
- Since 7.14.0, reporting commands implicitly combine parallel data files. Now those commands have a new option
--keep-combinedto retain the data files after combining them instead of the default, which is to delete them. Finishes issue 2198.- Fix: the LCOV report would incorrectly count excluded functions as uncovered, as described in issue 2205. This is now fixed thanks to Martin Kuntz Jacobsen.
- When running your program, coverage now correctly sets
yourmodule.__spec__.loaderas strongly recommended, avoiding the deprecation warning described in issue 2208. Thanks, A5rocks.- Fix: with Python 3.10, running with the
-I(isolated mode) option didn’t correctly omit the current directory from the module search path, as described in issue 2103. That is now fixed thanks to Ilia Sorokin.:arrow_right: PyPI page: coverage 7.15.0. :arrow_right: To install:
python3 -m pip install coverage==7.15.07.14.3
Version 7.14.3 — 2026-06-22
- Fix: the default
...exclusion rule now also matches function bodies whose closing return-type bracket is on its own line (for example, after a long-> dict[ ... ]annotation that a formatter has split over multiple lines). Closes issue 2185, thanks Mengjia Shang.- Fix: On 3.13t, we incorrectly issued
Couldn't import C tracererrors. We can’t import the C tracer because in 7.14.2 we stopped shipping compiled wheels for 3.13t. Thanks, Hugo van Kemenade.:arrow_right: PyPI page: coverage 7.14.3. :arrow_right: To install:
python3 -m pip install coverage==7.14.37.14.2
Version 7.14.2 — 2026-06-20
- Fix: some messages were being written to stdout, making
coverage json -o -useless for capturing JSON output. Now messages are written to stderr, fixing issue 2197.- Fix:
CoverageDatakept one SQLite connection per thread that recorded coverage, but never closed them when those threads terminated. On long runs with many short-lived threads this leaked one file descriptor per dead thread, eventually failing withOSError: [Errno 24] Too many open files. Connections belonging to terminated threads are now closed and dropped. Fixes issue 2192. Thanks, Matthew Lloyd.- Fix: when using sys.monitoring, we were assuming we could use the
COVERAGE_IDtool id. But other tools might also assume they could use that id. Pre-allocated ids don’t really make sense, so now we search for a usable one instead. Fixes issue 2187.- Following the advice of cibuildwheel, we no longer distribute wheels for Python 3.13 free-threaded.
:arrow_right: PyPI page: coverage 7.14.2. :arrow_right: To install:
python3 -m pip install coverage==7.14.27.14.1
Version 7.14.1 — 2026-05-26
... (truncated)
Changelog
Sourced from coverage[toml]'s changelog.
Version 7.15.2 — 2026-07-15
- Fix: one of the performance improvements in 7.15.1 (pull 2215) dramatically increased memory use during reporting for large projects. Now we use a different approach that is both faster and slimmer than 7.15.0. Fixes
issue 2229_... _issue 2229: coveragepy/coveragepy#2229
.. _changes_7-15-1:
Version 7.15.1 — 2026-07-12
Fix: in the HTML report with
show_contextsenabled, a context label containing</script>(for example a parametrized pytest node id) could close the inline<script>element in a file page early, injecting markup. Context labels are now fully escaped. Thanks,Rajath Mohare <pull 2224_>_.A number of performance improvements thanks to Paul Kehrer, in pull requests
2213 <pull 2213_>,2214 <pull 2214_>,2215 <pull 2215_>,2216 <pull 2216_>,2218 <pull 2218_>,2220 <pull 2220_>, and2221 <pull 2221_>_... _pull 2213: coveragepy/coveragepy#2213 .. _pull 2214: coveragepy/coveragepy#2214 .. _pull 2215: coveragepy/coveragepy#2215 .. _pull 2216: coveragepy/coveragepy#2216 .. _pull 2218: coveragepy/coveragepy#2218 .. _pull 2220: coveragepy/coveragepy#2220 .. _pull 2221: coveragepy/coveragepy#2221 .. _pull 2224: coveragepy/coveragepy#2224
.. _changes_7-15-0:
Version 7.15.0 — 2026-07-02
Since 7.14.0, reporting commands implicitly combine parallel data files. Now those commands have a new option
--keep-combinedto retain the data files after combining them instead of the default, which is to delete them. Finishesissue 2198_.Fix: the LCOV report would incorrectly count excluded functions as uncovered, as described in
issue 2205. This is now fixed thanks toMartin Kuntz Jacobsen <pull 2206_>.When running your program, coverage now correctly sets
... (truncated)
Commits
50d8659docs: sample HTML for 7.15.2b5eed20docs: prep for 7.15.278cab6efix: reduce memory use during reporting. #2229 (#2231)b4c1fdabuild: bump version to 7.15.2da63beddocs: sample HTML for 7.15.1bc35e64docs: prep for 7.15.1182b010perf: resolve sysmon branch events lazily, one pair at a time (#2221)ee271eeperf: compute multiline maps cheaply in the sysmon core (#2220)1441b96chore: bump the action-dependencies group with 6 updates (#2225)dd80635fix: escape context labels in html report inline script block (#2224)- Additional commits viewable in compare view
Updates cryptography from 48.0.1 to 49.0.0
Changelog
Sourced from cryptography's changelog.
49.0.0 - 2026-06-12
* **BACKWARDS INCOMPATIBLE:** Support for ``x86_64`` macOS has been removed. We now only publish ``arm64`` wheels for macOS. * **BACKWARDS INCOMPATIBLE:** Support for 32-bit Windows has been removed. Users should move to a 64-bit Python installation. * **BACKWARDS INCOMPATIBLE:** Removed the deprecated ``PUBLIC_KEY_TYPES``, ``PRIVATE_KEY_TYPES``, ``CERTIFICATE_PRIVATE_KEY_TYPES``, ``CERTIFICATE_ISSUER_PUBLIC_KEY_TYPES``, and ``CERTIFICATE_PUBLIC_KEY_TYPES`` type aliases. Use ``PublicKeyTypes``, ``PrivateKeyTypes``, ``CertificateIssuerPrivateKeyTypes``, ``CertificateIssuerPublicKeyTypes``, and ``CertificatePublicKeyTypes`` instead. These were deprecated in version 40.0. * **BACKWARDS INCOMPATIBLE:** :class:`~cryptography.hazmat.primitives.ciphers.algorithms.ChaCha20` now treats the first 4 bytes of the ``nonce`` as a 32-bit little-endian block counter (as defined in :rfc:`7539`) and tracks the number of bytes processed. Attempting to encrypt or decrypt more data than the counter allows before it would overflow now raises a :class:`ValueError` rather than silently diverging from RFC 7539. Setting the counter portion of the ``nonce`` to zero allows encrypting up to 256 GiB with a given nonce. * **BACKWARDS INCOMPATIBLE:** Loading an X.509 certificate whose ECDSA or DSA signature ``AlgorithmIdentifier`` contains encoded NULL parameters now raises a :class:`ValueError`. Such certificates are invalid, but older versions of Java emitted them; previously they loaded with a deprecation warning. * Fixed cross-compilation of the CFFI bindings when ``PYO3_CROSS_LIB_DIR`` is set. The build now derives the Python include directory from ``PYO3_CROSS_LIB_DIR`` instead of querying the host interpreter, which previously caused the build to fail during cross-compilations for embedded systems, on hosts which have same-version Python development headers installed as the target Python. * Added support for signing and verifying X.509 certificates, certificate signing requests, and certificate revocation lists with :doc:`/hazmat/primitives/asymmetric/mldsa` keys, as well as loading certificates that contain ML-DSA public keys. * Added :meth:`~cryptography.hazmat.primitives.hpke.KEM.enc_length` to :class:`~cryptography.hazmat.primitives.hpke.KEM` so callers can split the encapsulated key from the ciphertext returned by :meth:`~cryptography.hazmat.primitives.hpke.Suite.encrypt`. * :meth:`~cryptography.x509.verification.ExtensionPolicy.require_present`, :meth:`~cryptography.x509.verification.ExtensionPolicy.may_be_present`, and :meth:`~cryptography.x509.verification.ExtensionPolicy.require_not_present` now accept any extension type. Previously only a fixed set of extension types was supported, which made it impossible to account for otherwise unrecognized critical extensions during path validation. * Added support for using :class:`~cryptography.x509.Certificate`, :class:`~cryptography.x509.CertificateSigningRequest`, and :class:`~cryptography.x509.CertificateRevocationList` as field types in :doc:`/hazmat/asn1/index` structures. * Added :func:`~cryptography.hazmat.asn1.value_set`, a class decorator that </tr></table>
... (truncated)
Commits
e300bbebump version and changelog for 49.0.0 (#15030)fa74cd8Add external mu (message representative) support for ML-DSA (#14979)f594db3chore(deps): bump openssl from 0.10.80 to 0.10.81 (#15029)608e011chore(deps): bump openssl-sys from 0.9.116 to 0.9.117 (#15028)a322bc4chore(deps): bump cc from 1.2.63 to 1.2.64 (#15027)33181a7Reject critical nameConstraints extensions containing directoryName constrain...6080dc7Bump dependencies that dependabot isn't (#15026)121faa3chore(deps): bump virtualenv from 21.4.2 to 21.4.3 (#15023)829520bAdd more robust processing for DH parameters. (#15016)0f05001Bump downstream dependencies in CI (#15025)- Additional commits viewable in compare view
Updates pytest-codspeed from 4.5.0 to 5.0.3
Release notes
Sourced from pytest-codspeed's releases.
v5.0.3
What's Changed
- chore: move callgrind skip obj API to instrument-hooks by
@not-matthiasin CodSpeedHQ/pytest-codspeed#123Full Changelog: https://github.com/CodSpeedHQ/pytest-codspeed/compare/v5.0.2...v5.0.3
v5.0.2
What's Changed
- feat: skip Python runtime objects in callgrind by
@not-matthiasin CodSpeedHQ/pytest-codspeed#122Full Changelog: https://github.com/CodSpeedHQ/pytest-codspeed/compare/v5.0.1...v5.0.2
v5.0.1
What's Changed
- build: enable free-threaded wheels in cibuildwheel by
@art049in CodSpeedHQ/pytest-codspeed#121Full Changelog: https://github.com/CodSpeedHQ/pytest-codspeed/compare/v5.0.0...v5.0.1
v5.0.0
Highlights
MacOS walltime profiling is now available with the codspeed cli v4.16.1 and above.
pytest-codspeedcan now be used in free threaded mode. This has been tested with 3.14t and 3.15t. For this, we have dropped usage ofcffiin favor of the native extension support.What's Changed
- chore: bump instrument-hooks by
@not-matthiasin CodSpeedHQ/pytest-codspeed#119- Remove CFFI in favor of native extension to support free-threaded mode by
@adriencacciain CodSpeedHQ/pytest-codspeed#96- feat(hooks): declare native extension free-thread safe by
@art049in CodSpeedHQ/pytest-codspeed#120- feat: use instrument-hook markers in walltime by
@GuillaumeLagrangein CodSpeedHQ/pytest-codspeed#118Full Changelog: https://github.com/CodSpeedHQ/pytest-codspeed/compare/v4.5.0...v5.0.0
Changelog
Sourced from pytest-codspeed's changelog.
[5.0.3] - 2026-05-22
🏗️ Refactor
- Use instrument_hooks_callgrind_add_obj_skip from C API by
@not-matthiasin #123[5.0.2] - 2026-05-14
🚀 Features
- Skip Python runtime objects in callgrind by
@not-matthiasin #122[5.0.1] - 2026-05-13
💼 Other
[5.0.0] - 2026-05-13
🚀 Features
- Use instrument_hooks markers in walltime by
@GuillaumeLagrange- Declare native extension free-thread safe (#120) by
@art049in #120- Remove cffi in favor of native extension by
@adriencaccia⚡ Performance
⚙️ Internals
- Ignore common compilation warnings for instrument-hooks by
@GuillaumeLagrangein #118- Use unsigned bash in the macos test by
@GuillaumeLagrange- Bump pinned uv version to 0.11.14 by
@art049- Add python 3.15 and 3.15t to test matrix by
@art049- Add 3.14.t in test suite by
@adriencaccia- Bump instrument-hooks (#119) by
@not-matthiasin #119
Commits
b2d12d8Release v5.0.3 🚀31447b7refactor: use instrument_hooks_callgrind_add_obj_skip from C APIfc33d20Release v5.0.2 🚀3bbabe4feat: skip Python runtime objects in callgrindd4d9dc6Release v5.0.1 🚀ad709a5build: enable free-threaded wheels in cibuildwheel (#121)080d620Release v5.0.0 🚀befdebfchore: ignore common compilation warnings for instrument-hooksee98055chore: use unsigned bash in the macos test5a205c8feat: use instrument_hooks markers in walltime- Additional commits viewable in compare view
Updates pytest-httpbin from 2.0.0 to 2.1.0
Commits
5cee134Merge pull request #95 from kevin1024/bump-version-finalf424122bump to 2.1.0f7b2b3eMerge pull request #94 from kevin1024/bump-version9b18f26Update README.md3b4a22aUpdate README.mdb90b867bump to 2.1.0rc1e71ed01Merge pull request #90 from kevin1024/test-on-3-13-and-pypy-3-10c86126cremove unsupported PyPy versionsaad2fe3Merge branch 'master' of github.com:kevin1024/pytest-httpbin into test-on-3-1...f81b16bMerge pull request #93 from kevin1024/fix-deprecated-upload-download-artifact- Additional commits viewable in compare view
Updates trio from 0.31.0 to 0.33.0
Release notes
Sourced from trio's releases.
v0.33.0
Full Changelog: https://github.com/python-trio/trio/compare/v0.32.0...v0.33.0
Bugfixes
- Start supporting Android's new
"android"sys.platform. (python-trio/trio#3357)Deprecations and removals
- Both
trio.testing.RaisesGroupandtrio.testing.Matcherhave been deprecated. Pytest alternativespytest.RaisesGroupandpytest.RaisesExc(respectively) are considered correct replacement. (python-trio/trio#3326)v0.32.0
Full Changelog: https://github.com/python-trio/trio/compare/v0.31.0...v0.32.0
Features
- Allow
trio.CapacityLimiterto have zero total_tokens. (python-trio/trio#3321)Bugfixes
- Fixed a bug where iterating over an
@as_safe_channel-derivedReceiveChannelwould raisetrio.BrokenResourceErrorif the channel was closed by another task. It now shuts down cleanly. (python-trio/trio#3331)trio.lowlevel.Task.iter_await_framesnow works on completed tasks, by returning an empty list of frames if the underlying coroutine has been closed. Previously, it raised an internal error. (python-trio/trio#3337)Removals without deprecations
- Drop support for Python 3.9. (python-trio/trio#3345)
Miscellaneous internal changes
- Decrease indentation for exception groups raised in
trio.as_safe_channel. (python-trio/trio#3332)
Commits
3073f0cBump version to 0.33.0c21654bBump dependencies from commit 694044 (#3391)6940445Documentation search improvements (#3378)e27a303Merge pull request #3384 from A5rocks/update-sphinx93b989bAdd coredis and streaQ libraries to documentation (#3389)bc94ce1Add coredis and streaQ libraries to documentation1ee96c8[pre-commit.ci] pre-commit autoupdate (#3387)95d9205Dependency updates (#3386)21250b1Update to Sphinx 94a9c6db[pre-commit.ci] pre-commit autoupdate (#3382)- Additional commits viewable in compare view
Updates uvicorn from 0.46.0 to 0.51.0
Release notes
Sourced from uvicorn's releases.
Version 0.51.0
What's Changed
- Restart workers with overlap on SIGHUP for near-zero-downtime reloads by
@Kludexin Kludex/uvicorn#3025- Remove colorama from the standard extra by
@Kludexin Kludex/uvicorn#3027Full Changelog: https://github.com/Kludex/uvicorn/compare/0.50.2...0.51.0
Version 0.50.1
What's Changed
- Split comma-separated
Sec-WebSocket-Protocolvalues in the websockets-sansio implementation by@Aayush7352in Kludex/uvicorn#3019New Contributors
@Aayush7352made their first contribution in Kludex/uvicorn#3019Full Changelog: https://github.com/Kludex/uvicorn/compare/0.50.0...0.50.1
Version 0.50.0
What's Changed
- Memoize trusted host checks to avoid re-parsing the client IP per request by
@Kludexin Kludex/uvicorn#2970- Cache the
asgiscope sub-dict per connection by@Kludexin Kludex/uvicorn#2976- Build a fresh
asgiscope dict per request by@Kludexin Kludex/uvicorn#2977- Replace click.style with an internal ANSI style helper by
@Kludexin Kludex/uvicorn#2981- Avoid copying single-frame WebSocket payloads in websockets-sansio by
@Kludexin Kludex/uvicorn#2983- Deprecate the legacy websockets implementation and default
autoto websockets-sansio by@Kludexin Kludex/uvicorn#2985- Exit with a dedicated code on startup failure and stop the supervisor when a worker can't boot by
@Kludexin Kludex/uvicorn#3001- Skip the eager app import in the parent when spawning workers by
@Kludexin Kludex/uvicorn#3012Full Changelog: https://github.com/Kludex/uvicorn/compare/0.49.0...0.50.0
Version 0.49.0
What's Changed
- Bump httptools minimum version to 0.8.0 by
@Kludexin Kludex/uvicorn#2962- Consume duplicate forwarding headers in ProxyHeadersMiddleware (reverses the 0.48.0 behavior of ignoring them) by
@Kludexin Kludex/uvicorn#2971Full Changelog: https://github.com/Kludex/uvicorn/compare/0.48.0...0.49.0
Version 0.48.0
What's Changed
- Default
ssl_cipherstoNoneand use OpenSSL defaults by@Kludexin Kludex/uvicorn#2940- Ignore duplicate forwarding headers in
ProxyHeadersMiddlewareby@Kludexin Kludex/uvicorn#2944Full Changelog: https://github.com/Kludex/uvicorn/compare/0.47.0...0.48.0
Version 0.47.0
What's Changed
- Eagerly import the ASGI app in the parent process by
@Kludexin Kludex/uvicorn#2919- Add
ssl_context_factoryfor customSSLContextconfiguration by@Kludexin Kludex/uvicorn#2920- Treat
fd=0as a valid file descriptor with reload/workers by@eltoderin Kludex/uvicorn#2927
... (truncated)
Changelog
Sourced from uvicorn's changelog.
0.51.0 (July 8, 2026)
Added
- Restart workers one at a time on
SIGHUP, bringing each replacement up before retiring the old worker, so reloads no longer drop requests (#3025)Removed
- Remove
coloramafrom thestandardextra (#3027)0.50.2 (July 6, 2026)
Fixed
- Require
websockets>=13.0, which the defaultwebsockets-sansioimplementation needs (#3021)0.50.1 (July 6, 2026)
Fixed
- Split comma-separated
Sec-WebSocket-Protocolvalues in thewebsockets-sansioimplementation (#3019)0.50.0 (July 4, 2026)
If you use WebSockets, note that
--ws autonow picks thewebsockets-sansioimplementation. You shouldn't need it, but you can pin--ws websocketsto get the deprecated legacy one back.Changed
- Exit with the dedicated code 3 on any startup failure: app loading, socket bind and lifespan startup errors previously exited with a mix of 0, 1 and 3 (#3001)
- Stop the multiprocess supervisor when a worker exits with code 3 instead of restarting it forever (#3001)
- Default
--ws autotowebsockets-sansiowhen websockets is installed (#2985)- Skip the eager app import in the parent process with
--reloador--workers, fixing a memory regression introduced in 0.47.0 (#3012)- Build a fresh
asgiscope dict per request (#2977)- Cache the
asgiscope sub-dict per connection (#2976)- Avoid copying single-frame WebSocket payloads in
websockets-sansio(#2983)- Memoize trusted host checks in
ProxyHeadersMiddleware(#2970)- Replace
click.stylewith an internal ANSI style helper (#2981)Deprecated
- Deprecate the legacy
websocketsimplementation; usewebsockets-sansioorwsprotoinstead (#2985)0.49.0 (June 3, 2026)
Changed
- Bump
httptoolsminimum version to 0.8.0 (#2962)- Consume duplicate forwarding headers in
ProxyHeadersMiddleware(reverses the 0.48.0 behavior of ignoring them) (#2971)0.48.0 (May 24, 2026)
... (truncated)
Commits
e4d0b05Version 0.51.0 (#3028)944e43dRemove colorama from the standard extra (#3027)2e78770Restart workers with overlap on SIGHUP for near-zero-downtime reloads (#3025)a1b570cVersion 0.50.2 (#3022)83c7da7Require websockets>=13.0 for the default sansio implementation (#3021)b4d0116Version 0.50.1 (#3020)2a9151dSplit comma-separatedSec-WebSocket-Protocolvalues in the websockets-sansi...1bf3ab4Cover the excluded-directory branch inFileFilterwith a direct test (#3014)837b5f9Deflake multiprocess, reload, and signal supervisor tests (#2975)21d2c16Version 0.50.0 (#3013)- Additional commits viewable in compare view
Updates websockets from 16.0 to 16.1.1
Release notes
Sourced from websockets's releases.
16.1.1
See https://websockets.readthedocs.io/en/stable/project/changelog.html for details.
16.1
See https://websockets.readthedocs.io/en/stable/project/changelog.html for details.
Commits
01df1e4Revert "Decode non-ASCII header values with iso-8859-1."2d61f74Clarify restriction on headers in 16.1.4df6f90Release version 16.1.7c69ecaIncrease timeout for building wheels.493864eComplete and review changelog.73ff538Temporarily remove the trio implementation (again).77f7d71Shorten changelog and docstring for previous commit.84859e1Add text argument to broadcast() to force the frame type1a38f5aDocument research on removing a workaround.99431eeApply code style to docs/conf.py.- Additional commits viewable in compare view
Updates mypy from 1.17.1 to 2.3.0
Changelog
Sourced from mypy's changelog.
Mypy Release Notes
Next Release
Packaging changes
- No longer provide mypyc-accelerated wheels for macOS x86_64 [mypyc-wheels #119](mypyc/mypy_mypyc-wheels#119)
Mypy 2.3
We've just uploaded mypy 2.3.0 to the Python Package Index (PyPI). Mypy is a static type checker for Python. This release includes new features, performance improvements and bug fixes. You can install it as follows:
python3 -m pip install -U mypyYou can read the full documentation for this release on Read the Docs.
The Upcoming Switch to the New Native Parser
We are planning to enable the new native parser (
--native-parser) by default soon. We recommend that you test the native parser in your projects and report any issues in the mypy issue tracker.Mypyc Free-threading Memory Safety
Free-threaded Python builds that don't have the GIL require additional synchronization primitives or lock-free algorithms to ensure memory safety when there are race conditions (for example, when a thread reads a list item while another thread writes the same list item concurrently). This release greatly improves memory safety of free threading.
List operations are now memory-safe on free threaded Python builds, even in the presence of race conditions. This has some performance cost. For list-heavy workloads, using
librt.vecs.vecinstead of list is often significantly faster, but note thatvecis not (and likely won't be) fully memory safe, and the user is expected to avoid race conditions. The newly introducedlibrt.threading.Lockhelps with this. Using variable-length tuples can also be more efficient than lists, since tuples are immutable and don't require expensive synchronization to ensure memory safety.Instance attribute access is also (mostly) memory safe now on free-threaded builds in the presence of race conditions. We are planning to fix the remaining unsafe cases in a future release.
Full list of changes:
- Make attribute access memory safe on free-threaded builds (Jukka Lehtosalo, PR 21705)
- Fix unsafe borrowing of instance attributes with free-threading (Jukka Lehtosalo, PR 21688)
- Make list get/set item more memory safe on free-threaded builds (Jukka Lehtosalo, PR 21683)
- Don't borrow list items on free-threaded builds (Jukka Lehtosalo, PR 21679)
- Make multiple assignment from list memory-safe on free-threaded builds (Jukka Lehtosalo, PR 21684)
... (truncated)
Commits
8aabf84Drop +dev from version4d8ad2aUpdate changelog for 2.3 release (#21728)2c21546[mypyc] Update documentation of race conditions under free threading (#21726)a9f62a3[mypyc] Make attribute access memory safe on free-threaded builds (#21705)0faa413UsePYODIDEenvironment variable for Emscripten cross-compilation detection...3d75cdb[mypyc] Borrow final attributes more aggressively (#21702)-
Description has been truncated