From 786ffde4e63a09213f77f0eb6ffc999e145cf21e Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 22 Feb 2022 18:16:12 -0500 Subject: [PATCH] Use 3.9+ annots --- piker/data/_source.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/piker/data/_source.py b/piker/data/_source.py index 0677df65..dfa48453 100644 --- a/piker/data/_source.py +++ b/piker/data/_source.py @@ -17,7 +17,7 @@ """ numpy data source coversion helpers. """ -from typing import Dict, Any, List +from typing import Any import decimal import numpy as np @@ -103,13 +103,13 @@ class Symbol(BaseModel): lot_tick_size: float # "volume" precision as min step value tick_size_digits: int lot_size_digits: int - broker_info: Dict[str, Dict[str, Any]] = {} + broker_info: dict[str, dict[str, Any]] = {} # specifies a "class" of financial instrument # ex. stock, futer, option, bond etc. @property - def brokers(self) -> List[str]: + def brokers(self) -> list[str]: return list(self.broker_info.keys()) def nearest_tick(self, value: float) -> float: