Add support for byte-based paths in connect_unix, create_unix_listeners, create_unix_datagram_socket, and create_connected_unix_datagram_socket. (PR by Lura Skye)
Enabled the Event and CapacityLimiter classes to be instantiated outside an event loop thread
Broadly improved/fixed the type annotations. Among other things, many functions and methods that take variadic positional arguments now make use of PEP 646 TypeVarTuple to allow the positional arguments to be validated by static type checkers. These changes affected numerous methods and functions, including:
Fixed various type annotations of anyio.Path to match Typeshed:
anyio.Path.__lt__()
anyio.Path.__le__()
anyio.Path.__gt__()
anyio.Path.__ge__()
anyio.Path.__truediv__()
anyio.Path.__rtruediv__()
anyio.Path.hardlink_to()
anyio.Path.samefile()
anyio.Path.symlink_to()
anyio.Path.with_segments()
(PR by Ganden Schaffner)
Fixed adjusting the total number of tokens in a CapacityLimiter on asyncio failing to wake up tasks waiting to acquire the limiter in certain edge cases (fixed with help from Egor Blagov)
Fixed loop_factory and use_uvloop options not being used on the asyncio backend (#643)
Fixed cancellation propagating on asyncio from a task group to child tasks if the task hosting the task group is in a shielded cancel scope (#642)
4.1.0
Adapted to API changes made in Trio v0.23:
Call trio.to_thread.run_sync() using the abandon_on_cancel keyword argument instead of cancellable
Removed a checkpoint when exiting a task group
Renamed the cancellable argument in anyio.to_thread.run_sync() to abandon_on_cancel (and deprecated the old parameter name)
Bumped minimum version of Trio to v0.23
Added support for voluntary thread cancellation via anyio.from_thread.check_cancelled()
Bumped minimum version of trio to v0.23
Exposed the ResourceGuard class in the public API (#627)
Fixed RuntimeError: Runner is closed when running higher-scoped async generator fixtures in some cases (#619)
This library adheres to Semantic Versioning 2.0 <http://semver.org/>_.
UNRELEASED
Added support for the Python 3.12 walk_up keyword argument in
anyio.Path.relative_to() (PR by Colin Taylor)
Fixed passing total_tokens to anyio.CapacityLimiter() as a keyword argument
not working on the trio backend
([#515](https://github.com/agronholm/anyio/issues/515) <https://github.com/agronholm/anyio/issues/515>_)
Fixed Process.aclose() not performing the minimum level of necessary cleanup when
cancelled. Previously:
Cancellation of Process.aclose() could leak an orphan process
Cancellation of run_process() could very briefly leak an orphan process.
Cancellation of Process.aclose() or run_process() on Trio could leave
standard streams unclosed
(PR by Ganden Schaffner)
Fixed Process.stdin.aclose(), Process.stdout.aclose(), and
Process.stderr.aclose() not including a checkpoint on asyncio (PR by Ganden
Schaffner)
Fixed documentation on how to provide your own typed attributes
4.2.0
Add support for byte-based paths in connect_unix, create_unix_listeners,
create_unix_datagram_socket, and create_connected_unix_datagram_socket. (PR by
Lura Skye)
Enabled the Event and CapacityLimiter classes to be instantiated outside an
event loop thread
Broadly improved/fixed the type annotations. Among other things, many functions and
methods that take variadic positional arguments now make use of PEP 646
TypeVarTuple to allow the positional arguments to be validated by static type
checkers. These changes affected numerous methods and functions, including:
Asynchronous destinationless sockets now work on Windows.
Cython is no longer supported due to various typing issues.
Dnspython now explicitly canonicalizes IPv4 and IPv6 addresses.
Previously it was possible for non-canonical IPv6 forms to be stored
in a AAAA address, which would work correctly but possibly cause
problmes if the address were used as a key in a dictionary.
The number of messages in a section can be retrieved with
section_count().
Truncation preferences for messages can be specified.
The length of a message can be automatically prepended when
rendering.
dns.message.create_response() automatically adds padding when
required by RFC 8467.
The TLS verify parameter is now supported by dns.query.tls(),
and the DoH and DoT Nameserver subclasses.
The MutableMapping used to store content in a zone may now be
specified by a factory when subclassing. Factories may also be
provided for writable verisons and immutable versions.
dns.name.Name now has predecessor() and successor() methods
implementing RFC 4471.
QUIC has had a number of bug fixes and also now supports session
tickets for faster session resumption.
The NSEC3 class now has a next_name() method for retrieving the next
name as a dns.name.Name.
Windows WMI interface detection should be more robust.
⬆️ Upgrade minimum version of python-multipart to >=0.0.7 to fix a vulnerability when using form data with a ReDos attack. You can also simply upgrade python-multipart.
NumPy 1.26.4 is a maintenance release that fixes bugs and regressions
discovered after the 1.26.3 release. The Python versions supported by
this release are 3.9-3.12. This is the last planned release in the
1.26.x series.
Contributors
A total of 13 people contributed to this release. People with a "+" by
their names contributed a patch for the first time.
Charles Harris
Elliott Sales de Andrade
Lucas Colley +
Mark Ryan +
Matti Picus
Nathan Goldbaum
Ola x Nilsson +
Pieter Eendebak
Ralf Gommers
Sayed Adel
Sebastian Berg
Stefan van der Walt
Stefano Rivera
Pull requests merged
A total of 19 pull requests were merged for this release.
[#463](https://github.com/pytest-dev/pluggy/issues/463) <https://github.com/pytest-dev/pluggy/issues/463>_: A warning :class:~pluggy.PluggyTeardownRaisedWarning is now issued when an old-style hookwrapper raises an exception during teardown.
See the warning documentation for more details.
[#471](https://github.com/pytest-dev/pluggy/issues/471) <https://github.com/pytest-dev/pluggy/issues/471>_: Add :func:PluginManager.unblock <pluggy.PluginManager.unblock> method to unblock a plugin by plugin name.
Bug Fixes
[#441](https://github.com/pytest-dev/pluggy/issues/441) <https://github.com/pytest-dev/pluggy/issues/441>_: Fix :func:~pluggy.HookCaller.call_extra() extra methods getting ordered before everything else in some circumstances. Regressed in pluggy 1.1.0.
[#438](https://github.com/pytest-dev/pluggy/issues/438) <https://github.com/pytest-dev/pluggy/issues/438>_: Fix plugins registering other plugins in a hook when the other plugins implement the same hook itself. Regressed in pluggy 1.1.0.
Bumps the all group with 16 updates:
3.7.1
4.2.0
1.23.6
1.25.0
2023.11.17
2024.2.2
2.4.2
2.5.0
0.105.0
0.109.2
0.41.1
0.42.0
0.58.1
0.59.0
1.26.2
1.26.4
1.3.0
1.4.0
2.5.3
2.6.1
2.14.6
2.16.2
7.4.3
8.0.0
2023.3.post1
2024.1
1.11.4
1.12.0
0.27.0
0.37.1
0.25.0
0.27.1
Updates
anyio
from 3.7.1 to 4.2.0Release notes
Sourced from anyio's releases.
... (truncated)
Changelog
Sourced from anyio's changelog.
... (truncated)
Commits
f757314
Bumped up the versionfe31dd5
Added Litestar to the downstream test suiteb7be190
Updated GitHub actions45b9ece
Rearranged the changelog0b66994
Fix morePath
typing that doesn't match Typeshed (#653)e5fadb3
Added mention of anyio.from_thread.run_sync() to the changelog89795b9
Used TypeVarTuple and ParamSpec in several places (#652)3a4ec47
Removed the pyright version pin28516e2
Enabled Event and CapacityLimiter to be instantiated outside an event loop (#...44ca5ea
Fixed cancellation propagation when task group host is in a shielded scope (#...Updates
beanie
from 1.23.6 to 1.25.0Release notes
Sourced from beanie's releases.
... (truncated)
Changelog
Sourced from beanie's changelog.
... (truncated)
Commits
72b35f9
Version/1.25.0 (#844)3258326
Limit Nesting Level of Linked Documents (#834)7c49b91
Sync Method (#831)ced7168
ko-fi buttons (#843)99312f6
Create FUNDING.yml (#842)8fa4068
Update migration command to enable/disable transactions (#828)63542eb
Fix: FindInterface type-hints break on View models (#819)9056fbb
fix: count with text queries and links (#826)e876e1a
Encode date objects (#816)f2e1439
version | 1.24.0 (#815)Updates
certifi
from 2023.11.17 to 2024.2.2Commits
45eb611
2024.02.02 (#266)83f4f04
fix leaking certificate issue (#265)bbf2208
Bump actions/upload-artifact from 4.2.0 to 4.3.0 (#264)9e837a5
Bump actions/upload-artifact from 4.1.0 to 4.2.0 (#262)05d071b
Bump actions/upload-artifact from 4.0.0 to 4.1.0 (#261)2a3088a
Bump actions/download-artifact from 4.1.0 to 4.1.1 (#260)d4ca66e
Bump actions/upload-artifact from 3.1.3 to 4.0.0 (#258)5d15663
Bump actions/download-artifact from 3.0.2 to 4.1.0 (#257)d66ef9d
Bump actions/setup-python from 4.7.1 to 5.0.0 (#256)8f0d412
Bump pypa/gh-action-pypi-publish from 1.8.10 to 1.8.11 (#255)Updates
dnspython
from 2.4.2 to 2.5.0Release notes
Sourced from dnspython's releases.
Changelog
Sourced from dnspython's changelog.
Commits
91e5027
2.5.0 versioning59b2655
Bump readthedocs-sphinx-search from 0.3.1 to 0.3.2 (#1033)5e9cd03
bump hatchling minimum version for official 3.12 supportf018789
update SECURITY.md supported statusa507858
2.5.0rc1 versioningace5a51
GSS-TSIG doco updatesd978740
formatting lintc7eb392
lint62c9536
update whatsnew for 2.5.0609d6b2
Uniform TLS verify argument support. (#1027)Updates
fastapi
from 0.105.0 to 0.109.2Release notes
Sourced from fastapi's releases.
... (truncated)
Commits
141e34f
📝 Update release notes57b0983
🔖 Release FastAPI version 0.109.250e558e
📝 Update release notes4a2be2a
⬆️ Upgrade version of Starlette to>= 0.36.3
(#11086)43f9cbc
📝 Update release notes739739c
🍱 Add new FastAPI logo (#11090)6944ae1
📝 Update release notese239c56
:globe_with_meridians: Update Turkish translation for `docs/tr/docs/fastapi-p...3f3ee24
📝 Update release notes7633d15
🔖 Release version 0.109.1Updates
llvmlite
from 0.41.1 to 0.42.0Commits
b2a26aa
Merge pull request #1029 from stuartarchibald/wip/change_log_0_42_0_final2c3dae0
Update CHANGE_LOG for 0.42.0 final.c0c7726
Initialize 0.42 branchf22420a
Merge pull request #1021 from gmarkall/release-notes-04283a8829
Update CHANGE_LOGab073f5
Add release notes for 0.42.0rc14292eea
Merge pull request #978 from tbennun/type-query-480bb55b
Add test for is_function_vararg on non-function typefe53feb
Merge remote-tracking branch 'origin/main' into pr/978e70590f
Merge pull request #1019 from diptorupd/add_convergent_attributeUpdates
numba
from 0.58.1 to 0.59.0Release notes
Sourced from numba's releases.
Commits
c6da269
Merge pull request #9411 from stuartarchibald/wip/version_tab_rel_notes_059054d91fb
Merge pull request #9405 from sklam/misc/rel59finale76f945
Doc updates for 0.59.0 final.938e779
Merge pull request #9407 from sklam/fix/parfor_bug_from_92444502c3d
Merge pull request #9403 from sklam/fix/sigillf911c19
Merge pull request #9402 from sklam/misc/doc_updates_5929529a0
Merge pull request #9404 from stuartarchibald/wip/fix_py3_12_1_update437b91b
Merge pull request #9371 from sklam/misc/relese0.59prep35afde5
Flake8 fix74166ce
Apply suggestions from code reviewUpdates
numpy
from 1.26.2 to 1.26.4Release notes
Sourced from numpy's releases.
... (truncated)
Commits
9815c16
Merge pull request #25770 from charris/prepare-1.26.4114ed25
REL: Prepare for the NumPy 1.26.4 release2fae4d3
Merge pull request #25323 from stefanor/import-asstrce89a0a
Merge pull request #25756 from charris/backport-24711f62dfc6
Merge pull request #25755 from charris/backport-25709fee88ab
BUG: Fix np.quantile([Fraction(2,1)], 0.5) (#24711)659be68
MAINT: Include header defining backtrace837cd38
Merge pull request #25748 from rgommers/unvendor-mesonpythonf984240
CI: upgrade cibuildwheel from 2.16.4 to 2.16.5 [wheel build]3548f9d
BLD: unvendor meson-python [wheel build]Updates
pluggy
from 1.3.0 to 1.4.0Changelog
Sourced from pluggy's changelog.
Commits
2efd28e
Preparing release 1.4.0ebeb2f2
Merge pull request #471 from bluetech/unblock3a28b4d
Merge pull request #464 from bluetech/hookwrapper-teardown-warning4331b7a
Merge pull request #473 from bluetech/iterator-invalidation7aef3e6
hooks: fix plugins registering other plugins in a hookcc36605
Merge pull request #472 from bluetech/call-extra-ordering-fix443fee6
hooks: fixcall_extra
extra methods getting ordered before everything else4577b45
hooks: add comment describing_hookimpls
's format/invariants.13b3661
AddPluginManager.unblock
method to unblock a name4b5b2d4
CHANGELOG: fix errors in 1.0.0 entryUpdates
pydantic
from 2.5.3 to 2.6.1Release notes
Sourced from pydantic's releases.
... (truncated)
Changelog
Sourced from pydantic's changelog.
... (truncated)
Commits
cf822bd
prep for 2.6.1 releasefa8acbb
Version bump for pydantic 2.16.2 (#8717)2d812a8
Reverting problematic fix from 2.6 release, fixing schema building bug (#8718)8e790d5
Fix unsupported types bug with plain validator (#8710)aac1069
Fix regression in core schema generation for indirect definition references (...43327d8
Fix inheriting annotations in dataclasses (#8679)f3532ed
FixByteSize
errortype
change (#8681)50259d7
Fix bug with mypy plugin andno_strict_optional = True
(#8666)afd0aa8
Drop pypy-3.8 from CI (#8667)0b2578d
update date for 2.6 releaseUpdates
pydantic-core
from 2.14.6 to 2.16.2Release notes
Sourced from pydantic-core's releases.
Looks like these dependencies are updatable in another way, so this is no longer needed.