diff --git a/fixcloudutils/service.py b/fixcloudutils/service.py index 5025516..967922c 100644 --- a/fixcloudutils/service.py +++ b/fixcloudutils/service.py @@ -25,7 +25,7 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . import logging -from typing import Any, TypeVar, Dict, List, Type, AsyncContextManager +from typing import Any, TypeVar, Dict, List, Type, AsyncContextManager, Tuple ServiceType = TypeVar("ServiceType", bound="Service") T = TypeVar("T") @@ -60,8 +60,8 @@ def extend(self, **deps: Any) -> "Dependencies": return self @property - def services(self) -> List[(str, AsyncContextManager[Any])]: - return [(k,v) for k, v in self.lookup.items() if isinstance(v, AsyncContextManager)] + def services(self) -> List[Tuple[str, AsyncContextManager[Any]]]: + return [(k, v) for k, v in self.lookup.items() if isinstance(v, AsyncContextManager)] def service(self, name: str, clazz: Type[T]) -> T: if isinstance(existing := self.lookup.get(name), clazz):