Correct type annotations for utils.retry()
The interval and backoff_rate parameters passed to tenacity are floats, not ints. Change-Id: Ic5470b7fccfb7e84f36dfb7da6ed6733e38d6dd0
This commit is contained in:
parent
4558e4b53a
commit
8e0398ff92
@ -633,9 +633,9 @@ def retry(retry_param: Union[None,
|
||||
Tuple[Type[Exception], ...],
|
||||
int,
|
||||
Tuple[int, ...]],
|
||||
interval: int = 1,
|
||||
interval: float = 1,
|
||||
retries: int = 3,
|
||||
backoff_rate: int = 2,
|
||||
backoff_rate: float = 2,
|
||||
wait_random: bool = False,
|
||||
retry=tenacity.retry_if_exception_type) -> Callable:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user