Merge "mypy: update retry decorator in utils.py"

This commit is contained in:
Zuul 2021-10-15 16:15:42 +00:00 committed by Gerrit Code Review
commit 5dc7993181
1 changed files with 5 additions and 1 deletions

View File

@ -628,7 +628,11 @@ class retry_if_exit_code(tenacity.retry_if_exception):
exc.exit_code in self.codes)
def retry(retry_param: Optional[Type[Exception]],
def retry(retry_param: Union[None,
Type[Exception],
Tuple[Type[Exception], ...],
int,
Tuple[int, ...]],
interval: int = 1,
retries: int = 3,
backoff_rate: int = 2,