Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 17, 2025

Bumps trio from 0.27.0 to 0.29.0.

Release notes

Sourced from trio's releases.

v0.29.0

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. (python-trio/trio#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. (python-trio/trio#3145)

Bugfixes

Miscellaneous internal changes

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

  • Fixed spelling error in Windows error code enum for ERROR_INVALID_PARAMETER. (python-trio/trio#3166)

  • Publicly re-export __version__ for type checking purposes. (python-trio/trio#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. (python-trio/trio#3201)

v0.28.0

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

Bugfixes

  • :func:inspect.iscoroutinefunction and the like now give correct answers when called on KI-protected functions. (python-trio/trio#2670)

  • Rework KeyboardInterrupt protection to track code objects, rather than frames, as protected or not. The new implementation no longer needs to access frame.f_locals dictionaries, so it won't artificially extend the lifetime of local variables. Since KeyboardInterrupt protection is now imposed statically (when a protected function is defined) rather than each time the function runs, its previously-noticeable performance overhead should now be near zero. The lack of a call-time wrapper has some other benefits as well:

    • :func:inspect.iscoroutinefunction and the like now give correct answers when called on KI-protected functions.

    • Calling a synchronous KI-protected function no longer pushes an additional stack frame, so tracebacks are clearer.

    • A synchronous KI-protected function invoked from C code (such as a weakref

... (truncated)

Commits
  • 1497c77 Bump version to 0.29.0
  • b92131c Merge pull request #3200 from A5rocks/clear-after-fork
  • 09daf03 Merge pull request #3207 from python-trio/autodeps/bump_from_ad9462
  • 5900c7c Delay including typing-extensions
  • aa7f2df Dependency updates
  • ad9462b Merge pull request #3201 from tjstum/resolver
  • 3d61e02 _public
  • 26ea897 Merge pull request #3204 from python-trio/pre-commit-ci-update-config
  • c73c2ec Merge pull request #3203 from A5rocks/remove-lines
  • 398424e [pre-commit.ci] auto fixes from pre-commit.com hooks
  • Additional commits viewable in compare view

Most Recent Ignore Conditions Applied to This Pull Request
Dependency Name Ignore Conditions
trio [>= 0.28.dev0, < 0.29]

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 [trio](https://github.com/python-trio/trio) from 0.27.0 to 0.29.0.
- [Release notes](https://github.com/python-trio/trio/releases)
- [Commits](python-trio/trio@v0.27.0...v0.29.0)

---
updated-dependencies:
- dependency-name: trio
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot requested a review from a team as a code owner February 17, 2025 04:07
@dependabot dependabot bot added dependencies python Pull requests that update Python code labels Feb 17, 2025
@github-actions github-actions bot enabled auto-merge February 17, 2025 04:08
@sonarqubecloud
Copy link

@github-actions github-actions bot merged commit c6c089e into main Feb 17, 2025
14 checks passed
@github-actions github-actions bot deleted the dependabot/pip/trio-0.29.0 branch February 17, 2025 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants