Skip to content

Commit

Permalink
Link the deprecations to new documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
A5rocks authored Apr 26, 2024
1 parent 21d69fd commit 4440706
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions src/trio/_core/_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 4440706

Please sign in to comment.