Drop `tn` input from `maybe_raise_from_masking_exc()`

Including all caller usage throughout. Moving to a non-`except*` impl
means it's never needed as a signal from the caller - we can just catch
the beg outright (like we should have always been doing)..
final_eg_refinements
Tyler Goodlet 2025-07-25 11:16:02 -04:00
parent ba793fadd9
commit 25c5847f2e
2 changed files with 0 additions and 2 deletions

View File

@ -117,7 +117,6 @@ def test_acm_embedded_nursery_propagates_enter_err(
async with ( async with (
trio.open_nursery() as tn, trio.open_nursery() as tn,
tractor.trionics.maybe_raise_from_masking_exc( tractor.trionics.maybe_raise_from_masking_exc(
tn=tn,
unmask_from=( unmask_from=(
(trio.Cancelled,) if unmask_from_canc (trio.Cancelled,) if unmask_from_canc
else () else ()

View File

@ -65,7 +65,6 @@ def find_masked_excs(
# #
@acm @acm
async def maybe_raise_from_masking_exc( async def maybe_raise_from_masking_exc(
tn: trio.Nursery|None = None,
unmask_from: ( unmask_from: (
BaseException| BaseException|
tuple[BaseException] tuple[BaseException]