mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-29 13:32:08 +00:00
mypy
This commit is contained in:
committed by
Igor Radovanovic
parent
969d5cee42
commit
330f439aed
@@ -1349,7 +1349,7 @@ class OpenBBFigure(go.Figure):
|
||||
dt_missing_days = pd.to_datetime(dt_missing_days)
|
||||
|
||||
if len(dt_missing_days) < 2_000:
|
||||
rangebreaks: List[Dict[str, Any]] = [dict(values=dt_missing_days)]
|
||||
rangebreaks = [dict(values=dt_missing_days)]
|
||||
|
||||
# We get the frequency of the data to hide intra-day gaps
|
||||
if df_data.index[-1].time() != df_data.index[-2].time():
|
||||
|
||||
@@ -168,7 +168,7 @@ def display_historical_tvl(
|
||||
else:
|
||||
print(f"{dapp} not found\n")
|
||||
if export and export != "":
|
||||
return export_data(
|
||||
export_data(
|
||||
export,
|
||||
os.path.dirname(os.path.abspath(__file__)),
|
||||
f"dtvl_{dapp}",
|
||||
@@ -176,6 +176,7 @@ def display_historical_tvl(
|
||||
sheet_name,
|
||||
fig,
|
||||
)
|
||||
return None
|
||||
return fig.show(external=external_axes)
|
||||
return None
|
||||
|
||||
@@ -208,7 +209,7 @@ def display_defi_tvl(
|
||||
df = df.tail(limit)
|
||||
|
||||
if export and export != "":
|
||||
return export_data(
|
||||
export_data(
|
||||
export,
|
||||
os.path.dirname(os.path.abspath(__file__)),
|
||||
"stvl",
|
||||
@@ -216,7 +217,7 @@ def display_defi_tvl(
|
||||
sheet_name,
|
||||
fig,
|
||||
)
|
||||
|
||||
return None
|
||||
fig.add_scatter(x=df["date"], y=df["totalLiquidityUSD"], name="TVL")
|
||||
|
||||
return fig.show(external=external_axes)
|
||||
|
||||
Reference in New Issue
Block a user