From 1f877a048b7ae43fb79a2b8bc7e26d0ce7a65a61 Mon Sep 17 00:00:00 2001 From: Danglewood <85772166+deeleeramone@users.noreply.github.com> Date: Thu, 14 Nov 2024 12:34:57 -0800 Subject: [PATCH] lint --- .../core/openbb_core/provider/standard_models/yield_curve.py | 2 +- .../providers/econdb/openbb_econdb/models/yield_curve.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/openbb_platform/core/openbb_core/provider/standard_models/yield_curve.py b/openbb_platform/core/openbb_core/provider/standard_models/yield_curve.py index c5670d38b60..a542d02d093 100644 --- a/openbb_platform/core/openbb_core/provider/standard_models/yield_curve.py +++ b/openbb_platform/core/openbb_core/provider/standard_models/yield_curve.py @@ -52,11 +52,11 @@ class YieldCurveData(Data): ) maturity: str = Field(description="Maturity length of the security.") + @property @computed_field( description="Maturity length as a decimal.", return_type=Optional[float], ) - @property def maturity_years(self) -> Optional[float]: """Get the maturity in years as a decimal.""" if self.maturity is None or "_" not in self.maturity: diff --git a/openbb_platform/providers/econdb/openbb_econdb/models/yield_curve.py b/openbb_platform/providers/econdb/openbb_econdb/models/yield_curve.py index 9e5456768d8..748b9a2c9a5 100644 --- a/openbb_platform/providers/econdb/openbb_econdb/models/yield_curve.py +++ b/openbb_platform/providers/econdb/openbb_econdb/models/yield_curve.py @@ -79,7 +79,7 @@ async def aextract_data( # pylint: disable=R0914.R0912,R0915 query: EconDbYieldCurveQueryParams, credentials: Optional[dict[str, str]], **kwargs: Any, - ) -> list[dict]: + ) -> dict: """Extract the data.""" # pylint: disable=import-outside-toplevel import asyncio # noqa @@ -160,7 +160,7 @@ async def get_one_country(country): @staticmethod def transform_data( query: EconDbYieldCurveQueryParams, - data: list[dict], + data: dict, **kwargs: Any, ) -> AnnotatedResult[list[EconDbYieldCurveData]]: """Transform the data."""