forked from goodboy/tractor
1
0
Fork 0

Add return type to debugger factory

alpha2
Tyler Goodlet 2021-08-02 20:38:03 -04:00
parent d906c81f14
commit 4f166500d0
1 changed files with 6 additions and 5 deletions

View File

@ -418,12 +418,13 @@ async def _breakpoint(
debug_func(actor) debug_func(actor)
def _mk_pdb(): def _mk_pdb() -> PdbwTeardown:
# XXX: setting these flags on the pdb instance are absolutely # XXX: setting these flags on the pdb instance are absolutely
# critical to having ctrl-c work in the ``trio`` standard way! # critical to having ctrl-c work in the ``trio`` standard way! The
# The stdlib's pdb supports entering the current sync frame # stdlib's pdb supports entering the current sync frame on a SIGINT,
# on a SIGINT, with ``trio`` we pretty much never want this # with ``trio`` we pretty much never want this and if we did we can
# and we did we can handle it in the ``tractor`` task runtime. # handle it in the ``tractor`` task runtime.
pdb = PdbwTeardown() pdb = PdbwTeardown()
pdb.allow_kbdint = True pdb.allow_kbdint = True