Skip to content

Commit

Permalink
more linting stuff apparently
Browse files Browse the repository at this point in the history
  • Loading branch information
deeleeramone committed Apr 20, 2024
1 parent 4402f8d commit 2e6eac1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ async def aextract_data(
URL = f"https://api-v2.intrinio.com/etfs/{symbol}/holdings?page_size=10000&api_key={api_key}"
if query.date:
URL += f"&as_of_date={query.date}"
data = []
data: List = []

async def response_callback(response: ClientResponse, session: ClientSession):
"""Async response callback."""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@ async def get_one(symbol):
url,
headers=IPO_HEADERS,
)
if response.get("status").get("rCode") == 400:
if response.get("status").get("rCode") == 400: # type: ignore
response = await amake_request(
url.replace("stocks", "etf"),
headers=IPO_HEADERS,
)
if response.get("status").get("rCode") == 200:
data = response.get("data").get("dividends").get("rows")
if response.get("status").get("rCode") == 200: # type: ignore
data = response.get("data").get("dividends").get("rows") # type: ignore

if data:
if len(symbols) > 1:
Expand Down

0 comments on commit 2e6eac1

Please sign in to comment.