openai-chat-app-quickstart
openai-chat-app-quickstart copied to clipboard
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
BlockingPortalProviderclass to aid with constructing synchronous counterparts to asynchronous interfaces that would otherwise require multiple blocking portals- Added
__slots__toAsyncResourceso 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 statuswhen 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 statuswhen 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
TypedAttributeLookupErrorif a typed attribute getter raisesKeyError- Fixed the asyncio backend not respecting the
PYTHONASYNCIODEBUGenvironment variable when setting thedebugflag inanyio.run()- Fixed
SocketStream.receive()not detecting EOF on asyncio if there is also data in the read buffer (#701)- Fixed
MemoryObjectStreamdropping 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
ResourceWarningforMemoryObjectReceiveStreamandMemoryObjectSendStreamthat were garbage collected without being closed (PR by Andrey Kazantcev)- Fixed
MemoryObjectSendStream.send()not raisingBrokenResourceErrorwhen the last correspondingMemoryObjectReceiveStreamis 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
BlockingPortalProviderclass to aid with constructing synchronous counterparts to asynchronous interfaces that would otherwise require multiple blocking portalsAdded
__slots__toAsyncResourceso 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 statuswhen 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 statuswhen 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
TypedAttributeLookupErrorif a typed attribute getter raisesKeyErrorFixed the asyncio backend not respecting the
PYTHONASYNCIODEBUGenvironment variable when setting thedebugflag 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
MemoryObjectStreamdropping 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
ResourceWarningforMemoryObjectReceiveStreamandMemoryObjectSendStreamthat were garbage collected without being closed (PR by Andrey Kazantcev)Fixed
MemoryObjectSendStream.send()not raisingBrokenResourceErrorwhen the last correspondingMemoryObjectReceiveStreamis 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
053e8f0Bumped up the versione7f750bFixed memory object stream sometimes dropping sent items (#735)9f5f14bFixed task group getting cancelled if start() gets cancelled (#717)8b648bcAdjusted the pull request template3ff5e9aRearranged changelog items541d1f8[pre-commit.ci] pre-commit autoupdate (#734)8a07690FixMemoryObjectSendStream.send(falsey)not raisingBrokenResourceErrorw...4b3de97Adjust the headings in the PR templatedfc44cfAdded__slots__toAsyncResource(#733)96920b0Fix typo in PR template (#730)- 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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)