From 49bdbf29be6a4e6b0e5f9c390e8f2e7f9ccb5eb4 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 22 Oct 2021 13:02:45 -0400 Subject: [PATCH] Add some typing around web bs --- piker/data/_web_bs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/piker/data/_web_bs.py b/piker/data/_web_bs.py index 485f69c2..d2a15e06 100644 --- a/piker/data/_web_bs.py +++ b/piker/data/_web_bs.py @@ -20,7 +20,7 @@ ToOlS fOr CoPInG wITh "tHE wEB" protocols. """ from contextlib import asynccontextmanager, AsyncExitStack from types import ModuleType -from typing import Any, Callable +from typing import Any, Callable, AsyncGenerator import json import trio @@ -127,7 +127,7 @@ async def open_autorecon_ws( # TODO: proper type annot smh fixture: Callable, -): +) -> AsyncGenerator[tuple[...], NoBsWs]: """Apparently we can QoS for all sorts of reasons..so catch em. """