Skip to content

Commit

Permalink
mypy: fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
pmav99 committed Jan 29, 2024
1 parent 8fb9398 commit 3c0c3f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions searvey/ioc.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def _before_sleep(retry_state: T.Any) -> None: # pragma: no cover
)


RETRY = tenacity.retry(
RETRY: T.Callable[..., T.Any] = tenacity.retry(
stop=(tenacity.stop_after_delay(90) | tenacity.stop_after_attempt(10)),
wait=tenacity.wait_random(min=2, max=10),
retry=tenacity.retry_if_exception_type(httpx.TransportError),
Expand Down Expand Up @@ -481,7 +481,7 @@ def _parse_ioc_responses(


def _ioc_date(ts: pd.Timestamp) -> str:
formatted = ts.strftime(IOC_URL_TS_FORMAT)
formatted: str = ts.strftime(IOC_URL_TS_FORMAT)
return formatted


Expand Down

0 comments on commit 3c0c3f0

Please sign in to comment.