Skip to content

Commit

Permalink
mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
deeleeramone committed May 15, 2024
1 parent 20069e1 commit c514112
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 @@ -25,7 +25,7 @@ class EconDbYieldCurveQueryParams(YieldCurveQueryParams):
__json_schema_extra__ = {
"date": ["multiple_items_allowed"],
}
country: Literal[COUNTRIES] = Field(
country: COUNTRIES = Field(
default="united_states",
description=QUERY_DESCRIPTIONS.get("country", ""),
json_schema_extra={"choices": DAILY_COUNTRIES},
Expand Down Expand Up @@ -118,7 +118,7 @@ def transform_data(
) -> AnnotatedResult[List[EconDbYieldCurveData]]:
"""Transform the data."""
maturity_order = list(DAILY[query.country].values())
dates = query.date.split(",")
dates = query.date.split(",") # type: ignore
dates_list = DatetimeIndex(dates)
new_data: Dict = {}
metadata: Dict = {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def generate_url(date):
)
return url

dates = query.date.split(",")
dates = query.date.split(",") # type: ignore
urls = [generate_url(date) for date in dates]

return await amake_requests(urls, **kwargs)
Expand Down

0 comments on commit c514112

Please sign in to comment.