From 1d013126b9224147714f2fe4a313c47d85a52778 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 31 Mar 2021 14:05:16 -0400 Subject: [PATCH] Fix type annot --- piker/brokers/ib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/piker/brokers/ib.py b/piker/brokers/ib.py index 2e475114..c7d8917e 100644 --- a/piker/brokers/ib.py +++ b/piker/brokers/ib.py @@ -798,7 +798,6 @@ async def backfill_bars( # write historical data to buffer shm.push(bars_array) - # shm_token = shm.token with trio.CancelScope() as cs: @@ -939,6 +938,7 @@ async def start_aio_quote_stream( async def stream_quotes( + send_chan: trio.abc.SendChannel, symbols: List[str], shm: ShmArray, @@ -946,7 +946,7 @@ async def stream_quotes( loglevel: str = None, # startup sync - task_status: TaskStatus[trio.CancelScope] = trio.TASK_STATUS_IGNORED, + task_status: TaskStatus[Tuple[Dict, Dict]] = trio.TASK_STATUS_IGNORED, ) -> None: """Stream symbol quotes.