From 44f4fdf04309cbd4175c53fa46e37cb291f14ee7 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 25 May 2021 06:33:07 -0400 Subject: [PATCH] Type annot the internal symbol cache --- piker/brokers/kraken.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/piker/brokers/kraken.py b/piker/brokers/kraken.py index 62fc6115..f2adccf4 100644 --- a/piker/brokers/kraken.py +++ b/piker/brokers/kraken.py @@ -153,7 +153,7 @@ class Client: 'User-Agent': 'krakenex/2.1.0 (+https://github.com/veox/python3-krakenex)' }) - self._pairs = None + self._pairs: list[str] = [] @property def pairs(self) -> Dict[str, Any]: @@ -289,7 +289,7 @@ class Client: async def get_client() -> Client: client = Client() - # load all symbols locally for fast search + # at startup, load all symbols locally for fast search await client.cache_symbols() yield client