Hide `._entry`/`._child` frames, tweak some more type annots

sc_super_proto_dgrams
Tyler Goodlet 2024-04-14 17:49:18 -04:00
parent 2b1dbcb541
commit 2f4c019f39
4 changed files with 8 additions and 6 deletions

View File

@ -36,6 +36,7 @@ def parse_ipaddr(arg):
if __name__ == "__main__":
__tracebackhide__: bool = True
parser = argparse.ArgumentParser()
parser.add_argument("--uid", type=parse_uid)

View File

@ -106,6 +106,7 @@ def _trio_main(
Entry point for a `trio_run_in_process` subactor.
'''
__tracebackhide__: bool = True
_state._current_actor = actor
trio_main = partial(
async_main,

View File

@ -503,7 +503,7 @@ async def trio_proc(
})
# track subactor in current nursery
curr_actor = current_actor()
curr_actor: Actor = current_actor()
curr_actor._actoruid2nursery[subactor.uid] = actor_nursery
# resume caller at next checkpoint now that child is up