From 6d4d428205b8c7f0f61d00b0f8c40617cba3dd5e Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 17 Oct 2022 15:54:05 -0400 Subject: [PATCH] Fix uid2nursery lookup table type annot --- tractor/_runtime.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tractor/_runtime.py b/tractor/_runtime.py index 12b1f82..4e1083f 100644 --- a/tractor/_runtime.py +++ b/tractor/_runtime.py @@ -488,7 +488,10 @@ class Actor: self._parent_chan: Optional[Channel] = None self._forkserver_info: Optional[ tuple[Any, Any, Any, Any, Any]] = None - self._actoruid2nursery: dict[Optional[tuple[str, str]], 'ActorNursery'] = {} # type: ignore # noqa + self._actoruid2nursery: dict[ + tuple[str, str], + ActorNursery | None, + ] = {} # type: ignore # noqa async def wait_for_peer( self, uid: tuple[str, str]