From 0c068768fbf7b1b9e742f9e55df6e22b048f044e Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Fri, 19 Jul 2019 14:06:42 +0800 Subject: [PATCH] [Fix] typo in typing --- vnpy/app/cta_backtester/ui/widget.py | 2 +- vnpy/chart/widget.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vnpy/app/cta_backtester/ui/widget.py b/vnpy/app/cta_backtester/ui/widget.py index 5c5787af..ef54804f 100644 --- a/vnpy/app/cta_backtester/ui/widget.py +++ b/vnpy/app/cta_backtester/ui/widget.py @@ -1045,4 +1045,4 @@ class CandleChartDialog(QtWidgets.QDialog): def is_updated(self): """""" - return self.updated \ No newline at end of file + return self.updated diff --git a/vnpy/chart/widget.py b/vnpy/chart/widget.py index caf4c8a9..17f957ce 100644 --- a/vnpy/chart/widget.py +++ b/vnpy/chart/widget.py @@ -27,8 +27,8 @@ class ChartWidget(pg.PlotWidget): self._manager: BarManager = BarManager() - self._plots: Dict[str, ChartItem] = {} - self._items: Dict[str, pg.GraphicsObject] = {} + self._plots: Dict[str, pg.GraphicsObject] = {} + self._items: Dict[str, ChartItem] = {} self._item_plot_map: Dict[ChartItem, pg.GraphicsObject] = {} self._first_plot: pg.PlotItem = None