Couple more type tweaks

tests_reorg
Tyler Goodlet 2018-09-01 14:43:48 -04:00
parent 3dcf16c43d
commit 438a79707f
1 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ class ActorNursery:
fn: typing.Callable, fn: typing.Callable,
bind_addr: Tuple[str, int] = ('127.0.0.1', 0), bind_addr: Tuple[str, int] = ('127.0.0.1', 0),
rpc_module_paths: List[str] = None, rpc_module_paths: List[str] = None,
statespace: dict = None, statespace: Dict[str, Any] = None,
loglevel: str = None, # set log level per subactor loglevel: str = None, # set log level per subactor
**kwargs, # explicit args to ``fn`` **kwargs, # explicit args to ``fn``
) -> Portal: ) -> Portal:
@ -287,7 +287,7 @@ class ActorNursery:
@asynccontextmanager @asynccontextmanager
async def open_nursery() -> typing.AsyncGenerator[None, ActorNursery]: async def open_nursery() -> typing.AsyncGenerator[ActorNursery, None]:
"""Create and yield a new ``ActorNursery``. """Create and yield a new ``ActorNursery``.
""" """
actor = current_actor() actor = current_actor()