summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-trio_0.29.0.bb
Commit message (Collapse)AuthorAgeFilesLines
* python3-trio: Upgrade 0.29.0 -> 0.30.0Leon Anavi2025-04-231-18/+0
| | | | | | | | | | | | | | | | | | | | Upgrade to release 0.30.0: - 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. - Allow trio to be a types.ModuleType and still have deprecated attributes. - Fixed socket module for some older systems which lack socket.AI_NUMERICSERV. - Now trio works on legacy (pre-Lion) macOS. - Update type hints for trio.run_process and trio.lowlevel.open_process. - Don't mutate the global runner when MockClock is created. - Fix incorrect return type hint for Nursery.start(). Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-trio: Upgrade 0.28.0 -> 0.29.0Leon Anavi2025-02-141-0/+18
Upgrade to release 0.29.0: - Add trio.lowlevel.in_trio_run() and trio.lowlevel.in_trio_task() and document the semantics (and differences) thereof. See the documentation. - 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. - Clear Trio's cache of worker threads upon os.fork. - Stop using ctypes to mutate tracebacks for strict_exception_groups=False's exception collapsing. - Fixed spelling error in Windows error code enum for ERROR_INVALID_PARAMETER. - Publicly re-export __version__ for type checking purposes. - 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. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>