summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorteh_coderer <me@tehcoderer.com>2023-05-07 19:03:25 -0400
committerteh_coderer <me@tehcoderer.com>2023-05-07 19:03:25 -0400
commit7cc347630300dffcd9e1ebc714f6e8e45244f460 (patch)
tree27732ff2c23a61a3d49b4c03baeef92b7b566507
parent0511b86949c840f8a217bb0362f909fdd39431bc (diff)
mypy
-rw-r--r--openbb_terminal/core/plots/backend.py3
-rw-r--r--openbb_terminal/core/plots/plotly_ta/plugins/momentum_plugin.py2
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()