From 4f166500d0a047e3a9a128b80d1245603f8a1ed9 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 2 Aug 2021 20:38:03 -0400 Subject: [PATCH] Add return type to debugger factory --- tractor/_debug.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tractor/_debug.py b/tractor/_debug.py index 7897e00..9ac79a1 100644 --- a/tractor/_debug.py +++ b/tractor/_debug.py @@ -418,12 +418,13 @@ async def _breakpoint( debug_func(actor) -def _mk_pdb(): +def _mk_pdb() -> PdbwTeardown: + # XXX: setting these flags on the pdb instance are absolutely - # critical to having ctrl-c work in the ``trio`` standard way! - # The stdlib's pdb supports entering the current sync frame - # on a SIGINT, with ``trio`` we pretty much never want this - # and we did we can handle it in the ``tractor`` task runtime. + # critical to having ctrl-c work in the ``trio`` standard way! The + # stdlib's pdb supports entering the current sync frame on a SIGINT, + # with ``trio`` we pretty much never want this and if we did we can + # handle it in the ``tractor`` task runtime. pdb = PdbwTeardown() pdb.allow_kbdint = True