From f67e22fc746a450493f63e9f81e51e2374eb4306 Mon Sep 17 00:00:00 2001 From: Jason Schroth Date: Thu, 27 Jun 2024 11:22:46 -0700 Subject: [PATCH] Update slack_wait_strategy return type hint I messed up when I recommended the return type. This format is correct --- src/dispatch/plugins/dispatch_slack/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dispatch/plugins/dispatch_slack/service.py b/src/dispatch/plugins/dispatch_slack/service.py index af13fd0c17db..908220fca445 100644 --- a/src/dispatch/plugins/dispatch_slack/service.py +++ b/src/dispatch/plugins/dispatch_slack/service.py @@ -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()