Bump anyio from 4.3.0 to 4.4.0
Bumps anyio from 4.3.0 to 4.4.0.
Release notes
Sourced from anyio's releases.
4.4.0
- Added the
BlockingPortalProvider
class to aid with constructing synchronous counterparts to asynchronous interfaces that would otherwise require multiple blocking portals- Added
__slots__
toAsyncResource
so that child classes can use__slots__
(#733; PR by Justin Su)- Added the
TaskInfo.has_pending_cancellation()
method- Fixed erroneous
RuntimeError: called 'started' twice on the same task status
when cancelling a task in a TaskGroup created with thestart()
method before the first checkpoint is reached after callingtask_status.started()
(#706; PR by Dominik Schwabe)- Fixed two bugs with
TaskGroup.start()
on asyncio:
- Fixed erroneous
RuntimeError: called 'started' twice on the same task status
when cancelling a task in a TaskGroup created with thestart()
method before the first checkpoint is reached after callingtask_status.started()
(#706; PR by Dominik Schwabe)- Fixed the entire task group being cancelled if a
TaskGroup.start()
call gets cancelled (#685, #710)- Fixed a race condition that caused crashes when multiple event loops of the same backend were running in separate threads and simultaneously attempted to use AnyIO for their first time (#425; PR by David Jiricek and Ganden Schaffner)
- Fixed cancellation delivery on asyncio incrementing the wrong cancel scope's cancellation counter when cascading a cancel operation to a child scope, thus failing to uncancel the host task (#716)
- Fixed erroneous
TypedAttributeLookupError
if a typed attribute getter raisesKeyError
- Fixed the asyncio backend not respecting the
PYTHONASYNCIODEBUG
environment variable when setting thedebug
flag inanyio.run()
- Fixed
SocketStream.receive()
not detecting EOF on asyncio if there is also data in the read buffer (#701)- Fixed
MemoryObjectStream
dropping an item if the item is delivered to a recipient that is waiting to receive an item but has a cancellation pending (#728)- Emit a
ResourceWarning
forMemoryObjectReceiveStream
andMemoryObjectSendStream
that were garbage collected without being closed (PR by Andrey Kazantcev)- Fixed
MemoryObjectSendStream.send()
not raisingBrokenResourceError
when the last correspondingMemoryObjectReceiveStream
is closed while waiting to send a falsey item (#731; PR by Ganden Schaffner)
Changelog
Sourced from anyio's changelog.
Version history
This library adheres to
Semantic Versioning 2.0 <http://semver.org/>
_.4.4.0
Added the
BlockingPortalProvider
class to aid with constructing synchronous counterparts to asynchronous interfaces that would otherwise require multiple blocking portalsAdded
__slots__
toAsyncResource
so that child classes can use__slots__
([#733](https://github.com/agronholm/anyio/issues/733) <https://github.com/agronholm/anyio/pull/733>
_; PR by Justin Su)Added the
TaskInfo.has_pending_cancellation()
methodFixed erroneous
RuntimeError: called 'started' twice on the same task status
when cancelling a task in a TaskGroup created with thestart()
method before the first checkpoint is reached after callingtask_status.started()
([#706](https://github.com/agronholm/anyio/issues/706) <https://github.com/agronholm/anyio/issues/706>
_; PR by Dominik Schwabe)Fixed two bugs with
TaskGroup.start()
on asyncio:
- Fixed erroneous
RuntimeError: called 'started' twice on the same task status
when cancelling a task in a TaskGroup created with thestart()
method before the first checkpoint is reached after callingtask_status.started()
([#706](https://github.com/agronholm/anyio/issues/706) <https://github.com/agronholm/anyio/issues/706>
_; PR by Dominik Schwabe)- Fixed the entire task group being cancelled if a
TaskGroup.start()
call gets cancelled ([#685](https://github.com/agronholm/anyio/issues/685) <https://github.com/agronholm/anyio/issues/685>
,[#710](https://github.com/agronholm/anyio/issues/710) <https://github.com/agronholm/anyio/issues/710>
)Fixed a race condition that caused crashes when multiple event loops of the same backend were running in separate threads and simultaneously attempted to use AnyIO for their first time (
[#425](https://github.com/agronholm/anyio/issues/425) <https://github.com/agronholm/anyio/issues/425>
_; PR by David Jiricek and Ganden Schaffner)Fixed cancellation delivery on asyncio incrementing the wrong cancel scope's cancellation counter when cascading a cancel operation to a child scope, thus failing to uncancel the host task (
[#716](https://github.com/agronholm/anyio/issues/716) <https://github.com/agronholm/anyio/issues/716>
_)Fixed erroneous
TypedAttributeLookupError
if a typed attribute getter raisesKeyError
Fixed the asyncio backend not respecting the
PYTHONASYNCIODEBUG
environment variable when setting thedebug
flag inanyio.run()
Fixed
SocketStream.receive()
not detecting EOF on asyncio if there is also data in the read buffer ([#701](https://github.com/agronholm/anyio/issues/701) <https://github.com/agronholm/anyio/issues/701>
_)Fixed
MemoryObjectStream
dropping an item if the item is delivered to a recipient that is waiting to receive an item but has a cancellation pending ([#728](https://github.com/agronholm/anyio/issues/728) <https://github.com/agronholm/anyio/issues/728>
_)Emit a
ResourceWarning
forMemoryObjectReceiveStream
andMemoryObjectSendStream
that were garbage collected without being closed (PR by Andrey Kazantcev)Fixed
MemoryObjectSendStream.send()
not raisingBrokenResourceError
when the last correspondingMemoryObjectReceiveStream
is closed while waiting to send a falsey item ([#731](https://github.com/agronholm/anyio/issues/731) <https://github.com/agronholm/anyio/issues/731>
_; PR by Ganden Schaffner)
... (truncated)
Commits
-
053e8f0
Bumped up the version -
e7f750b
Fixed memory object stream sometimes dropping sent items (#735) -
9f5f14b
Fixed task group getting cancelled if start() gets cancelled (#717) -
8b648bc
Adjusted the pull request template -
3ff5e9a
Rearranged changelog items -
541d1f8
[pre-commit.ci] pre-commit autoupdate (#734) -
8a07690
FixMemoryObjectSendStream.send(falsey)
not raisingBrokenResourceError
w... -
4b3de97
Adjust the headings in the PR template -
dfc44cf
Added__slots__
toAsyncResource
(#733) -
96920b0
Fix typo in PR template (#730) - Additional commits viewable in compare view