Skip to content

Commit

Permalink
Fixing minet.web typings
Browse files Browse the repository at this point in the history
  • Loading branch information
Yomguithereal committed Sep 6, 2024
1 parent b4eb647 commit 5941cfa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion minet/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -1190,6 +1190,8 @@ def __call__(self, retry_state: RetryCallState) -> None:

exception = retry_state.outcome.exception()

assert retry_state.next_action is not None

sleepers_logger.warn(
"request_retryer starts sleeping",
extra={
Expand Down Expand Up @@ -1321,7 +1323,8 @@ def status_predicate(exc: BaseException) -> bool:
"retry": retry_condition,
"stop": stop_after_attempt(max_attempts),
"before_sleep": rcompose(
log_request_retryer_before_sleep(epilog), before_sleep
log_request_retryer_before_sleep(epilog), # type: ignore
before_sleep,
),
}

Expand Down

0 comments on commit 5941cfa

Please sign in to comment.