From 7cc347630300dffcd9e1ebc714f6e8e45244f460 Mon Sep 17 00:00:00 2001 From: teh_coderer Date: Sun, 7 May 2023 19:03:25 -0400 Subject: [PATCH] mypy --- openbb_terminal/core/plots/backend.py | 3 ++- .../core/plots/plotly_ta/plugins/momentum_plugin.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/openbb_terminal/core/plots/backend.py b/openbb_terminal/core/plots/backend.py index d2ce3483956..78872194810 100644 --- a/openbb_terminal/core/plots/backend.py +++ b/openbb_terminal/core/plots/backend.py @@ -21,9 +21,10 @@ try: from pywry import PyWry except ImportError as e: print(f"\033[91m{e}\033[0m") + # pylint: disable=C0412 from openbb_terminal.core.plots.no_import import DummyBackend - class PyWry(DummyBackend): + class PyWry(DummyBackend): # type: ignore pass diff --git a/openbb_terminal/core/plots/plotly_ta/plugins/momentum_plugin.py b/openbb_terminal/core/plots/plotly_ta/plugins/momentum_plugin.py index a2234bba056..7472d2caa26 100644 --- a/openbb_terminal/core/plots/plotly_ta/plugins/momentum_plugin.py +++ b/openbb_terminal/core/plots/plotly_ta/plugins/momentum_plugin.py @@ -539,7 +539,7 @@ class Momentum(PltTA): leading_span_a = ((conversion_line + base_line) / 2).shift(displacement) # Senkou Span B (Leading Span B) - lagging_line = df_ta["Close"].shift(-lagging_line_period) + lagging_line = df_ta[self.close_column].shift(-lagging_line_period) # type: ignore leading_span_b = ( ( lagging_line.rolling(window=base_period).max()