chore(deps): update dependency trio to v0.32.0 #14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==0.28.0→==0.32.0Release Notes
python-trio/trio (trio)
v0.32.0Compare Source
Full Changelog: python-trio/trio@v0.31.0...v0.32.0
Features
trio.CapacityLimiterto have zero total_tokens. (#3321)Bugfixes
@as_safe_channel-derivedReceiveChannelwould raisetrio.BrokenResourceErrorif the channel was closed by another task. It now shuts down cleanly. (#3331)trio.lowlevel.Task.iter_await_framesnow 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
Miscellaneous internal changes
trio.as_safe_channel. (#3332)v0.31.0Compare Source
Full Changelog: python-trio/trio@v0.30.0...v0.31.0
Features
Cancelledstrings can now display the source and reason for a cancellation. Trio-internal sources of cancellation will set this string, andCancelScope.cancelnow has areasonstring parameter that can be used to attach info to anyCancelledto help in debugging. (#3232)Bugfixes
python -m trio). (#3007)trio.Cancelled, as they can show up when you want to pickle something else. This does not rule out pickling otherNoPublicConstructorobjects -- create an issue if necessary. (#3248)raise_single_exception_from_groupthat reraises last exception from group. (#3275)trio.as_safe_channelraise if closing the generator wrappedGeneratorExitin aBaseExceptionGroup. (#3324)Deprecations and removals
bool(trio.Event)and have it raise aDeprecationWarningand tell users to usetrio.Event.is_setinstead. This is an alternative tomypy --enable-error-code=truthy-boolfor users who don't use type checking. (#3322)Miscellaneous internal changes
RuntimeErrorinstead of a catastrophicTrioInternalError. (#3307)v0.30.0Compare Source
Full Changelog: python-trio/trio@v0.29.0...v0.30.0
Features
@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
trioto be atypes.ModuleTypeand still have deprecated attributes. (#2135)socket.AI_NUMERICSERV.Now trio works on legacy (pre-Lion) macOS. (#3133)
trio.run_processandtrio.lowlevel.open_process. (#3183)Nursery.start(). (#3224)Improved documentation
v0.29.0Compare Source
Full Changelog: python-trio/trio@v0.28.0...v0.29.0
Features
trio.lowlevel.in_trio_runandtrio.lowlevel.in_trio_taskand document the semantics (and differences) thereof. (#2757)trio.testing.RaisesGroupdoes not get the expected exceptions it now raises anAssertionErrorwith a helpful message, instead of letting the raised exception/group fall through. The raised exception is available in the__context__of theAssertionErrorand can be seen in the traceback. (#3145)Bugfixes
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.getaddrinfohas been corrected to match that of the stdlibsocket.getaddrinfo, which was updated in mypy 1.15 (via a typeshed update) to include the possibility oftuple[int, bytes]for thesockaddrfield 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.runandtrio.from_thread.run_synchas 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.
This PR was generated by Mend Renovate. View the repository job log.