Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
deeleeramone committed Nov 14, 2024
1 parent 07416e0 commit 1f877a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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."""
Expand Down

0 comments on commit 1f877a0

Please sign in to comment.