Skip to content

Commit

Permalink
more pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
deeleeramone committed May 15, 2024
1 parent b37955c commit bfa4cce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,7 @@ def technical_relative_rotation(
ratios_df, momentum_df, benchmark_symbol, study, date # type: ignore
)

figure = OpenBBFigure(fig)
figure = OpenBBFigure(fig) # pylint: disable=E0606
font_color = "black" if ChartStyle().plt_style == "light" else "white"
figure.update_layout(
paper_bgcolor="rgba(0,0,0,0)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ async def aextract_data(
)
YIELD_CURVE = IDS["SERIES_IDS"]

maturities = list(MATURITIES.keys())

BASE_URL = "https://data.ecb.europa.eu/data-detail-api"

async def get_one(maturity, use_cache):
Expand Down Expand Up @@ -113,7 +111,7 @@ async def get_one(maturity, use_cache):
}
results.append(d)

tasks = [get_one(maturity, query.use_cache) for maturity in maturities]
tasks = [get_one(maturity, query.use_cache) for maturity in MATURITIES]

await asyncio.gather(*tasks)

Expand Down

0 comments on commit bfa4cce

Please sign in to comment.