From 44407061fb2b2588705052639a8afb1b95c21418 Mon Sep 17 00:00:00 2001 From: EXPLOSION Date: Fri, 26 Apr 2024 13:16:10 +0900 Subject: [PATCH] Link the deprecations to new documentation --- src/trio/_core/_run.py | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/trio/_core/_run.py b/src/trio/_core/_run.py index 9d27793d82..72ad961561 100644 --- a/src/trio/_core/_run.py +++ b/src/trio/_core/_run.py @@ -997,9 +997,12 @@ def open_nursery( if strict_exception_groups is not None and not strict_exception_groups: warn_deprecated( "open_nursery(strict_exception_groups=False)", - version="0.24.1", + version="0.25.0", issue=2929, - instead="the default value of True and rewrite exception handlers to handle ExceptionGroups", + instead=( + "the default value of True and rewrite exception handlers to handle ExceptionGroups. " + "See https://trio.readthedocs.io/en/stable/reference-core.html#designing-for-multiple-errors" + ), ) if strict_exception_groups is None: @@ -2253,9 +2256,12 @@ def run( if strict_exception_groups is not None and not strict_exception_groups: warn_deprecated( "trio.run(..., strict_exception_groups=False)", - version="0.24.1", + version="0.25.0", issue=2929, - instead="the default value of True and rewrite exception handlers to handle ExceptionGroups", + instead=( + "the default value of True and rewrite exception handlers to handle ExceptionGroups. " + "See https://trio.readthedocs.io/en/stable/reference-core.html#designing-for-multiple-errors" + ), ) __tracebackhide__ = True @@ -2366,9 +2372,12 @@ def my_done_callback(run_outcome): if strict_exception_groups is not None and not strict_exception_groups: warn_deprecated( "trio.start_guest_run(..., strict_exception_groups=False)", - version="0.24.1", + version="0.25.0", issue=2929, - instead="the default value of True and rewrite exception handlers to handle ExceptionGroups", + instead=( + "the default value of True and rewrite exception handlers to handle ExceptionGroups. " + "See https://trio.readthedocs.io/en/stable/reference-core.html#designing-for-multiple-errors" + ), ) runner = setup_runner(