Skip to content

Commit

Permalink
Update slack_wait_strategy return type hint
Browse files Browse the repository at this point in the history
I messed up when I recommended the return type. This format is correct
  • Loading branch information
jschroth authored Jun 27, 2024
1 parent aa168c9 commit f67e22f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dispatch/plugins/dispatch_slack/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(self, wait_time: int | None = None):
def get_wait_time(self) -> int:
return self.wait_time

def slack_wait_strategy(retry_state: RetryCallState) -> [float, int]:
def slack_wait_strategy(retry_state: RetryCallState) -> float | int:
"""Determines the wait time for the Slack retry strategy"""
exc = retry_state.outcome.exception()

Expand Down

0 comments on commit f67e22f

Please sign in to comment.