From 26394dd8df93928f961b609c8a19a258610b6557 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 15 Dec 2021 17:21:41 -0500 Subject: [PATCH] Type annot fixes --- tractor/trionics/_mngrs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tractor/trionics/_mngrs.py b/tractor/trionics/_mngrs.py index 757af61..c9f596d 100644 --- a/tractor/trionics/_mngrs.py +++ b/tractor/trionics/_mngrs.py @@ -123,7 +123,7 @@ class _Cache: users: int = 0 values: dict[Any, Any] = {} resources: dict[ - int, + Hashable, tuple[trio.Nursery, trio.Event] ] = {} no_more_users: Optional[trio.Event] = None @@ -155,7 +155,7 @@ async def maybe_open_context( # XXX: used as cache key after conversion to tuple # and all embedded values must also be hashable - kwargs: Optional[dict] = {}, + kwargs: dict = {}, key: Hashable = None, ) -> AsyncIterator[tuple[bool, T]]: