mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-31 14:31:20 +00:00
mypy
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user