From d9b73e1d0809c6b82d4e05dc8471325a129fdd1b Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 24 Jan 2023 15:11:52 -0500 Subject: [PATCH] Yield services (manager) from `maybe_open_pikerd()` --- piker/_daemon.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/piker/_daemon.py b/piker/_daemon.py index 0369f3f9..b9c74853 100644 --- a/piker/_daemon.py +++ b/piker/_daemon.py @@ -22,9 +22,9 @@ from __future__ import annotations import os from typing import ( Optional, - Union, Callable, Any, + ClassVar, ) from contextlib import ( asynccontextmanager as acm, @@ -393,7 +393,7 @@ async def maybe_open_pikerd( **kwargs, -) -> Union[tractor._portal.Portal, Services]: +) -> tractor._portal.Portal | ClassVar[Services]: ''' If no ``pikerd`` daemon-root-actor can be found start it and yield up (we should probably figure out returning a portal to self @@ -445,7 +445,7 @@ async def maybe_open_pikerd( # tractor-piker runtime stack in **this** process # we return no portal to self. assert service_manager - yield None + yield service_manager # `brokerd` enabled modules