From 91fff77009699dcc107a648bf540aaf6f7b69ae1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20H=E1=BB=93ng=20Qu=C3=A2n?= Date: Sun, 4 Aug 2024 10:26:49 +0700 Subject: [PATCH] Make Retry type hint more exact (#2097) --- rq/job.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rq/job.py b/rq/job.py index cf455c85..ebdc45c3 100644 --- a/rq/job.py +++ b/rq/job.py @@ -1649,7 +1649,7 @@ _job_stack = LocalStack() class Retry: - def __init__(self, max: int, interval: Union[int, List[int]] = 0): + def __init__(self, max: int, interval: Union[int, Iterable[int]] = 0): """The main object to defined Retry logics for jobs. Args: