Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 29, 2025

Bumps anyio from 4.10.0 to 4.11.0.

Release notes

Sourced from anyio's releases.

4.11.0

  • Added support for cancellation reasons (the reason parameter to CancelScope.cancel()) (#975)
  • Bumped the minimum version of Trio to v0.31.0
  • Added the ability to enter the event loop from foreign (non-worker) threads by passing the return value of anyio.lowlevel.current_token() to anyio.from_thread.run() and anyio.from_thread.run_sync() as the token keyword argument (#256)
  • Added pytest option (anyio_mode = "auto") to make the pytest plugin automatically handle all async tests (#971)
  • Added the anyio.Condition.wait_for() method for feature parity with asyncio (#974)
  • Changed the default type argument of anyio.abc.TaskStatus from Any to None (#964)
  • Fixed TCP listener behavior to guarantee the same ephemeral port is used for all socket listeners when local_port=0 (#857; PR by @​11kkw and @​agronholm)
  • Fixed inconsistency between Trio and asyncio where a TCP stream that previously raised a BrokenResourceError on send() would still raise BrokenResourceError after the stream was closed on asyncio, but ClosedResourceError on Trio. They now both raise a ClosedResourceError in this scenario. (#671)
Changelog

Sourced from anyio's changelog.

Version history

This library adheres to Semantic Versioning 2.0 <http://semver.org/>_.

4.11.0

  • Added support for cancellation reasons (the reason parameter to CancelScope.cancel()) ([#975](https://github.com/agronholm/anyio/issues/975) <https://github.com/agronholm/anyio/pull/975>_)
  • Bumped the minimum version of Trio to v0.31.0
  • Added the ability to enter the event loop from foreign (non-worker) threads by passing the return value of anyio.lowlevel.current_token() to anyio.from_thread.run() and anyio.from_thread.run_sync() as the token keyword argument ([#256](https://github.com/agronholm/anyio/issues/256) <https://github.com/agronholm/anyio/issues/256>_)
  • Added pytest option (anyio_mode = "auto") to make the pytest plugin automatically handle all async tests ([#971](https://github.com/agronholm/anyio/issues/971) <https://github.com/agronholm/anyio/pull/971>_)
  • Added the anyio.Condition.wait_for() method for feature parity with asyncio ([#974](https://github.com/agronholm/anyio/issues/974) <https://github.com/agronholm/anyio/pull/974>_)
  • Changed the default type argument of anyio.abc.TaskStatus from Any to None ([#964](https://github.com/agronholm/anyio/issues/964) <https://github.com/agronholm/anyio/pull/964>_)
  • Fixed TCP listener behavior to guarantee the same ephemeral port is used for all socket listeners when local_port=0 ([#857](https://github.com/agronholm/anyio/issues/857) <https://github.com/agronholm/anyio/issues/857>_; PR by @​11kkw and @​agronholm)
  • Fixed inconsistency between Trio and asyncio where a TCP stream that previously raised a BrokenResourceError on send() would still raise BrokenResourceError after the stream was closed on asyncio, but ClosedResourceError on Trio. They now both raise a ClosedResourceError in this scenario. ([#671](https://github.com/agronholm/anyio/issues/671) <https://github.com/agronholm/anyio/issues/671>_)

4.10.0

  • Added the feed_data() method to the BufferedByteReceiveStream class, allowing users to inject data directly into the buffer

  • Added various class methods to wrap existing sockets as listeners or socket streams:

    • SocketListener.from_socket()
    • SocketStream.from_socket()
    • UNIXSocketStream.from_socket()
    • UDPSocket.from_socket()
    • ConnectedUDPSocket.from_socket()
    • UNIXDatagramSocket.from_socket()
    • ConnectedUNIXDatagramSocket.from_socket()
  • Added a hierarchy of connectable stream classes for transparently connecting to various remote or local endpoints for exchanging bytes or objects

  • Added context manager mix-in classes (anyio.ContextManagerMixin and anyio.AsyncContextManagerMixin) to help write classes that embed other context managers, particularly cancel scopes or task groups ([#905](https://github.com/agronholm/anyio/issues/905) <https://github.com/agronholm/anyio/pull/905>_; PR by @​agronholm and

... (truncated)

Commits
  • 08737af Bumped up the version
  • 8bb9fe0 Fixed the inconsistent exception on sending to a closed TCP stream (#980)
  • 9637093 [pre-commit.ci] pre-commit autoupdate (#981)
  • f1bc6ee Fixed changelog entry formatting
  • 0b58964 Mentioned the sub-interpreter support in the README
  • 1ed112c Ensure same port is used for IPv4/IPv6 when creating TCP listener with local_...
  • aceeee0 Re-enabled coverage reporting on macOS
  • 6b890dc Reworded a changelog entry and added PR links to others
  • 944257d Updated pre-commit modules
  • 087975f Fixed a documentation style (#976)
  • Additional commits viewable in compare view

Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [anyio](https://github.com/agronholm/anyio) from 4.10.0 to 4.11.0.
- [Release notes](https://github.com/agronholm/anyio/releases)
- [Changelog](https://github.com/agronholm/anyio/blob/master/docs/versionhistory.rst)
- [Commits](agronholm/anyio@4.10.0...4.11.0)

---
updated-dependencies:
- dependency-name: anyio
  dependency-version: 4.11.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Sep 29, 2025
@dependabot dependabot bot requested a review from a team as a code owner September 29, 2025 19:45
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Sep 29, 2025
@Wyverald Wyverald merged commit a1bbf1d into main Oct 6, 2025
9 checks passed
@dependabot dependabot bot deleted the dependabot/pip/tools/anyio-4.11.0 branch October 6, 2025 20:52
kotlaja pushed a commit to kotlaja/bazel-central-registry that referenced this pull request Oct 16, 2025
Bumps [anyio](https://github.com/agronholm/anyio) from 4.10.0 to 4.11.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/agronholm/anyio/releases">anyio's
releases</a>.</em></p>
<blockquote>
<h2>4.11.0</h2>
<ul>
<li>Added support for cancellation reasons (the <code>reason</code>
parameter to <code>CancelScope.cancel()</code>) (<a
href="https://redirect.github.com/agronholm/anyio/pull/975">#975</a>)</li>
<li>Bumped the minimum version of Trio to v0.31.0</li>
<li>Added the ability to enter the event loop from foreign (non-worker)
threads by passing the return value of
<code>anyio.lowlevel.current_token()</code> to
<code>anyio.from_thread.run()</code> and
<code>anyio.from_thread.run_sync()</code> as the <code>token</code>
keyword argument (<a
href="https://redirect.github.com/agronholm/anyio/issues/256">#256</a>)</li>
<li>Added pytest option (<code>anyio_mode = &quot;auto&quot;</code>) to
make the pytest plugin automatically handle all async tests (<a
href="https://redirect.github.com/agronholm/anyio/pull/971">#971</a>)</li>
<li>Added the <code>anyio.Condition.wait_for()</code> method for feature
parity with asyncio (<a
href="https://redirect.github.com/agronholm/anyio/pull/974">#974</a>)</li>
<li>Changed the default type argument of
<code>anyio.abc.TaskStatus</code> from <code>Any</code> to
<code>None</code> (<a
href="https://redirect.github.com/agronholm/anyio/pull/964">#964</a>)</li>
<li>Fixed TCP listener behavior to guarantee the same ephemeral port is
used for all socket listeners when <code>local_port=0</code> (<a
href="https://redirect.github.com/agronholm/anyio/issues/857">#857</a>;
PR by <a href="https://github.com/11kkw"><code>@​11kkw</code></a> and <a
href="https://github.com/agronholm"><code>@​agronholm</code></a>)</li>
<li>Fixed inconsistency between Trio and asyncio where a TCP stream that
previously raised a <code>BrokenResourceError</code> on
<code>send()</code> would still raise <code>BrokenResourceError</code>
after the stream was closed on asyncio, but
<code>ClosedResourceError</code> on Trio. They now both raise a
<code>ClosedResourceError</code> in this scenario. (<a
href="https://redirect.github.com/agronholm/anyio/issues/671">#671</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/agronholm/anyio/blob/master/docs/versionhistory.rst">anyio's
changelog</a>.</em></p>
<blockquote>
<h1>Version history</h1>
<p>This library adheres to <code>Semantic Versioning 2.0
&lt;http://semver.org/&gt;</code>_.</p>
<p><strong>4.11.0</strong></p>
<ul>
<li>Added support for cancellation reasons (the <code>reason</code>
parameter to
<code>CancelScope.cancel()</code>)
(<code>[bazelbuild#975](agronholm/anyio#975)
&lt;https://github.com/agronholm/anyio/pull/975&gt;</code>_)</li>
<li>Bumped the minimum version of Trio to v0.31.0</li>
<li>Added the ability to enter the event loop from foreign (non-worker)
threads by
passing the return value of <code>anyio.lowlevel.current_token()</code>
to
<code>anyio.from_thread.run()</code> and
<code>anyio.from_thread.run_sync()</code> as the <code>token</code>
keyword argument
(<code>[bazelbuild#256](agronholm/anyio#256)
&lt;https://github.com/agronholm/anyio/issues/256&gt;</code>_)</li>
<li>Added pytest option (<code>anyio_mode = &quot;auto&quot;</code>) to
make the pytest plugin automatically
handle all async tests
(<code>[bazelbuild#971](agronholm/anyio#971)
&lt;https://github.com/agronholm/anyio/pull/971&gt;</code>_)</li>
<li>Added the <code>anyio.Condition.wait_for()</code> method for feature
parity with asyncio
(<code>[bazelbuild#974](agronholm/anyio#974)
&lt;https://github.com/agronholm/anyio/pull/974&gt;</code>_)</li>
<li>Changed the default type argument of
<code>anyio.abc.TaskStatus</code> from <code>Any</code> to
<code>None</code>
(<code>[bazelbuild#964](agronholm/anyio#964)
&lt;https://github.com/agronholm/anyio/pull/964&gt;</code>_)</li>
<li>Fixed TCP listener behavior to guarantee the same ephemeral port is
used for all
socket listeners when <code>local_port=0</code>
(<code>[bazelbuild#857](agronholm/anyio#857)
&lt;https://github.com/agronholm/anyio/issues/857&gt;</code>_; PR by <a
href="https://github.com/11kkw"><code>@​11kkw</code></a> and <a
href="https://github.com/agronholm"><code>@​agronholm</code></a>)</li>
<li>Fixed inconsistency between Trio and asyncio where a TCP stream that
previously
raised a <code>BrokenResourceError</code> on <code>send()</code> would
still raise
<code>BrokenResourceError</code> after the stream was closed on asyncio,
but
<code>ClosedResourceError</code> on Trio. They now both raise a
<code>ClosedResourceError</code> in this
scenario. (<code>[bazelbuild#671](agronholm/anyio#671)
&lt;https://github.com/agronholm/anyio/issues/671&gt;</code>_)</li>
</ul>
<p><strong>4.10.0</strong></p>
<ul>
<li>
<p>Added the <code>feed_data()</code> method to the
<code>BufferedByteReceiveStream</code> class, allowing
users to inject data directly into the buffer</p>
</li>
<li>
<p>Added various class methods to wrap existing sockets as listeners or
socket streams:</p>
<ul>
<li><code>SocketListener.from_socket()</code></li>
<li><code>SocketStream.from_socket()</code></li>
<li><code>UNIXSocketStream.from_socket()</code></li>
<li><code>UDPSocket.from_socket()</code></li>
<li><code>ConnectedUDPSocket.from_socket()</code></li>
<li><code>UNIXDatagramSocket.from_socket()</code></li>
<li><code>ConnectedUNIXDatagramSocket.from_socket()</code></li>
</ul>
</li>
<li>
<p>Added a hierarchy of connectable stream classes for transparently
connecting to
various remote or local endpoints for exchanging bytes or objects</p>
</li>
<li>
<p>Added context manager mix-in classes
(<code>anyio.ContextManagerMixin</code> and
<code>anyio.AsyncContextManagerMixin</code>) to help write classes that
embed other context
managers, particularly cancel scopes or task groups
(<code>[bazelbuild#905](agronholm/anyio#905)
&lt;https://github.com/agronholm/anyio/pull/905&gt;</code>_; PR by <a
href="https://github.com/agronholm"><code>@​agronholm</code></a> and</p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/agronholm/anyio/commit/08737af202f6610cdb8ba53fecaefd9c03269637"><code>08737af</code></a>
Bumped up the version</li>
<li><a
href="https://github.com/agronholm/anyio/commit/8bb9fe04a1c0a4b6615c843d4a88bba38a386059"><code>8bb9fe0</code></a>
Fixed the inconsistent exception on sending to a closed TCP stream (<a
href="https://redirect.github.com/agronholm/anyio/issues/980">#980</a>)</li>
<li><a
href="https://github.com/agronholm/anyio/commit/963709358a05ced66986e928b593b4bd82422981"><code>9637093</code></a>
[pre-commit.ci] pre-commit autoupdate (<a
href="https://redirect.github.com/agronholm/anyio/issues/981">#981</a>)</li>
<li><a
href="https://github.com/agronholm/anyio/commit/f1bc6ee95a75007681ef9cb4eec0369838b390e9"><code>f1bc6ee</code></a>
Fixed changelog entry formatting</li>
<li><a
href="https://github.com/agronholm/anyio/commit/0b58964a26c68ca427b711bbe8536f61ed900133"><code>0b58964</code></a>
Mentioned the sub-interpreter support in the README</li>
<li><a
href="https://github.com/agronholm/anyio/commit/1ed112c65628d3cce312e7b6875b9f914d174a71"><code>1ed112c</code></a>
Ensure same port is used for IPv4/IPv6 when creating TCP listener with
local_...</li>
<li><a
href="https://github.com/agronholm/anyio/commit/aceeee09868642311a96626924f2f09c088a26c0"><code>aceeee0</code></a>
Re-enabled coverage reporting on macOS</li>
<li><a
href="https://github.com/agronholm/anyio/commit/6b890dc869f54b6237caff52a74e86382c076ad2"><code>6b890dc</code></a>
Reworded a changelog entry and added PR links to others</li>
<li><a
href="https://github.com/agronholm/anyio/commit/944257d2d59e8057dd00cd5cc96d8f73028031dd"><code>944257d</code></a>
Updated pre-commit modules</li>
<li><a
href="https://github.com/agronholm/anyio/commit/087975f44599471a84bea2077731143a346c276a"><code>087975f</code></a>
Fixed a documentation style (<a
href="https://redirect.github.com/agronholm/anyio/issues/976">#976</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/agronholm/anyio/compare/4.10.0...4.11.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=anyio&package-manager=pip&previous-version=4.10.0&new-version=4.11.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will 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 version` will 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 dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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.

1 participant