From 0afa7f0f8e857bfa55bc2f13f2e4d15cf3039748 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sat, 31 Jul 2021 12:50:58 -0400 Subject: [PATCH] Fix lock context manager return type --- tractor/_debug.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tractor/_debug.py b/tractor/_debug.py index 7cc7d97..cef3d8e 100644 --- a/tractor/_debug.py +++ b/tractor/_debug.py @@ -123,7 +123,9 @@ class PdbwTeardown(pdbpp.Pdb): @asynccontextmanager -async def _acquire_debug_lock(uid: Tuple[str, str]) -> AsyncIterator[None]: +async def _acquire_debug_lock( + uid: Tuple[str, str] +) -> AsyncIterator[trio.StrictFIFOLock]: '''Acquire a actor local FIFO lock meant to mutex entry to a local debugger entry point to avoid tty clobbering a global root process.