Skip to content

Update dependency trio to v0.34.0 - #938

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/trio-0.x
Open

Update dependency trio to v0.34.0#938
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/trio-0.x

Conversation

@renovate

@renovate renovate Bot commented Sep 9, 2025

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
trio (changelog) ==0.30.0==0.34.0 age confidence

Release Notes

python-trio/trio (trio)

v0.34.0

Compare Source

Full Changelog: python-trio/trio@v0.33.0...v0.34.0

Features

  • MemoryChannelStatistics now has a peak_buffer_used field, which reports the largest number of items that have ever been in the channel's buffer at once. This makes it easier to pick a sensible max_buffer_size based on data from a real run, instead of guessing. (#​1723)
  • Support Python 3.15, as of beta 4. Things may still change and so this support may break in the future. (#​3456)

Bugfixes

  • Nursery.start() now preserves the __cause__ and __context__ of exceptions raised before task_status.started() is called. (#​3261)
  • Fixed incorrect error message in run_process: the stdout pipe check now correctly says "stdout" instead of "stdin". (#​3409)
  • Fixed trio.Path.as_uri() on Python 3.14+ to avoid the deprecated pathlib.PurePath.as_uri() path. (#​3460)
  • Fixed trio.to_thread.run_sync workers leaking spawner's Context on py314t+ free-threaded builds. (#​3472)

Deprecations and removals

  • Trying to use absolute deadlines on a trio.CancelScope constructed with a relative deadline now raises, after being deprecated since Trio 0.27.0.

    To switch a cancel scope from being relative to absolute, replace the trio.CancelScope object instead of trying to mutate it. (#​3403)

v0.33.0

Compare Source

Full Changelog: python-trio/trio@v0.32.0...v0.33.0

Bugfixes

  • Start supporting Android's new "android" sys.platform. (#​3357)

Deprecations and removals

  • Both trio.testing.RaisesGroup and trio.testing.Matcher have been deprecated. Pytest alternatives pytest.RaisesGroup and pytest.RaisesExc (respectively) are considered correct replacement. (#​3326)

v0.32.0

Compare Source

Full Changelog: python-trio/trio@v0.31.0...v0.32.0

Features

  • Allow trio.CapacityLimiter to have zero total_tokens. (#​3321)

Bugfixes

  • Fixed a bug where iterating over an @as_safe_channel-derived ReceiveChannel would raise trio.BrokenResourceError if the channel was closed by another task. It now shuts down cleanly. (#​3331)
  • trio.lowlevel.Task.iter_await_frames now works on completed tasks, by returning an empty list of frames if the underlying coroutine has been closed. Previously, it raised an internal error. (#​3337)

Removals without deprecations

  • Drop support for Python 3.9. (#​3345)

Miscellaneous internal changes

  • Decrease indentation for exception groups raised in trio.as_safe_channel. (#​3332)

v0.31.0

Compare Source

Full Changelog: python-trio/trio@v0.30.0...v0.31.0

Features

  • Cancelled strings can now display the source and reason for a cancellation. Trio-internal sources of cancellation will set this string, and CancelScope.cancel now has a reason string parameter that can be used to attach info to any Cancelled to help in debugging. (#​3232)

Bugfixes

  • Make ctrl+c work in more situations in the Trio REPL (python -m trio). (#​3007)
  • Allow pickling trio.Cancelled, as they can show up when you want to pickle something else. This does not rule out pickling other NoPublicConstructor objects -- create an issue if necessary. (#​3248)
  • Decrease import time on Windows by around 10%. (#​3263)
  • Handle unwrapping SystemExit/KeyboardInterrupt exception gracefully in utility function raise_single_exception_from_group that reraises last exception from group. (#​3275)
  • Ensure that the DTLS server does not mutate SSL context. (#​3277)
  • Avoid having trio.as_safe_channel raise if closing the generator wrapped
    GeneratorExit in a BaseExceptionGroup. (#​3324)

Deprecations and removals

  • Implement bool(trio.Event) and have it raise a DeprecationWarning and tell users to use trio.Event.is_set instead. This is an alternative to mypy --enable-error-code=truthy-bool for users who don't use type checking. (#​3322)

Miscellaneous internal changes

  • When misnesting nurseries you now get a helpful RuntimeError instead of a catastrophic TrioInternalError. (#​3307)

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/trio-0.x branch from cb3a980 to 0edfa2d Compare September 9, 2025 21:06
@renovate
renovate Bot force-pushed the renovate/trio-0.x branch 3 times, most recently from 6f09994 to be0c0eb Compare October 5, 2025 12:27
@renovate
renovate Bot force-pushed the renovate/trio-0.x branch 26 times, most recently from 0e05fa8 to ead57b8 Compare October 9, 2025 22:04
@renovate
renovate Bot force-pushed the renovate/trio-0.x branch 2 times, most recently from 6bc8a9e to 2fd31c5 Compare October 23, 2025 19:29
@renovate
renovate Bot force-pushed the renovate/trio-0.x branch 3 times, most recently from c304d4c to 0e894f5 Compare October 31, 2025 11:05
@renovate renovate Bot changed the title Update dependency trio to v0.31.0 Update dependency trio to v0.32.0 Oct 31, 2025
@renovate
renovate Bot force-pushed the renovate/trio-0.x branch 2 times, most recently from 4a5fb61 to 483094c Compare November 12, 2025 16:17
@renovate
renovate Bot force-pushed the renovate/trio-0.x branch 21 times, most recently from dfd5a3f to 322a1a1 Compare November 17, 2025 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants