mirror of https://github.com/rq/rq.git
Make Retry type hint more exact (#2097)
This commit is contained in:
parent
e21d1ae133
commit
91fff77009
|
@ -1649,7 +1649,7 @@ _job_stack = LocalStack()
|
||||||
|
|
||||||
|
|
||||||
class Retry:
|
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.
|
"""The main object to defined Retry logics for jobs.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
|
|
Loading…
Reference in New Issue