From bfa4cce168913c3c78216c9bce6268c4b528c331 Mon Sep 17 00:00:00 2001 From: Danglewood <85772166+deeleeramone@users.noreply.github.com> Date: Wed, 15 May 2024 00:12:36 -0700 Subject: [PATCH] more pylint --- .../charting/openbb_charting/charting_router.py | 2 +- .../providers/ecb/openbb_ecb/models/yield_curve.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/openbb_platform/obbject_extensions/charting/openbb_charting/charting_router.py b/openbb_platform/obbject_extensions/charting/openbb_charting/charting_router.py index 57358dd3d0c0..7923027d450f 100644 --- a/openbb_platform/obbject_extensions/charting/openbb_charting/charting_router.py +++ b/openbb_platform/obbject_extensions/charting/openbb_charting/charting_router.py @@ -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)", diff --git a/openbb_platform/providers/ecb/openbb_ecb/models/yield_curve.py b/openbb_platform/providers/ecb/openbb_ecb/models/yield_curve.py index 361731a2a549..24abab2bea83 100644 --- a/openbb_platform/providers/ecb/openbb_ecb/models/yield_curve.py +++ b/openbb_platform/providers/ecb/openbb_ecb/models/yield_curve.py @@ -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): @@ -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)