Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Feb 15, 2025

This PR contains the following updates:

Package Change Age Confidence
trio (changelog) ==0.28.0==0.32.0 age confidence

Release Notes

python-trio/trio (trio)

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)

v0.30.0

Compare Source

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

Features

  • Add @trio.as_safe_channel, a wrapper that can be used to make async generators safe.
    This will be the suggested fix for the flake8-async lint rule ASYNC900. (#​3197)

Bugfixes

  • Allow trio to be a types.ModuleType and still have deprecated attributes. (#​2135)
  • Fixed socket module for some older systems which lack socket.AI_NUMERICSERV.
    Now trio works on legacy (pre-Lion) macOS. (#​3133)
  • Update type hints for trio.run_process and trio.lowlevel.open_process. (#​3183)
  • Don't mutate the global runner when MockClock is created. (#​3205)
  • Fix incorrect return type hint for Nursery.start(). (#​3224)

Improved documentation

  • Update wording in documentation to more accurately reflect Trio's maturity. (#​3216)

v0.29.0

Compare Source

Full Changelog: python-trio/trio@v0.28.0...v0.29.0

Features

  • Add trio.lowlevel.in_trio_run and trio.lowlevel.in_trio_task and document the semantics (and differences) thereof. (#​2757)
  • If trio.testing.RaisesGroup does not get the expected exceptions it now raises an AssertionError with a helpful message, instead of letting the raised exception/group fall through. The raised exception is available in the __context__ of the AssertionError and can be seen in the traceback. (#​3145)

Bugfixes

  • Clear Trio's cache of worker threads upon os.fork. (#​2764)

Miscellaneous internal changes

  • Stop using ctypes to mutate tracebacks for strict_exception_groups=False's exception collapsing. (#​405)

  • Fixed spelling error in Windows error code enum for ERROR_INVALID_PARAMETER. (#​3166)

  • Publicly re-export __version__ for type checking purposes. (#​3186)

  • The typing of trio.abc.HostnameResolver.getaddrinfo has been corrected to match that of the stdlib socket.getaddrinfo, which was updated in mypy 1.15 (via a typeshed update) to include the possibility of tuple[int, bytes] for the sockaddr field of the result. This happens in situations where Python was compiled with --disable-ipv6.

    Additionally, the static typing of trio.to_thread.run_sync, trio.from_thread.run and trio.from_thread.run_sync has been improved and should reflect the underlying function being run. (#​3201)


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, 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.

@deepsource-io
Copy link

deepsource-io bot commented Feb 15, 2025

Here's the code health analysis summary for commits 61c43c1..88e62d3. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource Secrets LogoSecrets✅ SuccessView Check ↗
DeepSource Python LogoPython✅ SuccessView Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

@renovate renovate bot changed the title chore(deps): update dependency trio to v0.29.0 chore(deps): update dependency trio to v0.30.0 Apr 22, 2025
@renovate renovate bot force-pushed the renovate/trio-0.x branch from 74a0c55 to 297baff Compare April 22, 2025 23:53
@renovate renovate bot force-pushed the renovate/trio-0.x branch from 297baff to 21d5839 Compare September 10, 2025 08:06
@renovate renovate bot changed the title chore(deps): update dependency trio to v0.30.0 chore(deps): update dependency trio to v0.31.0 Sep 10, 2025
@renovate renovate bot force-pushed the renovate/trio-0.x branch from 21d5839 to 88e62d3 Compare November 1, 2025 12:15
@renovate renovate bot changed the title chore(deps): update dependency trio to v0.31.0 chore(deps): update dependency trio to v0.32.0 Nov 1, 2025
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.

1 participant