Skip to content

Commit 3de872f

Browse files
committed
Fix tenacity calls for strict mypy kwargs
1 parent a6b5d03 commit 3de872f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

admin/create_secrets_files.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ def _create_and_get_vumark_details(
7676

7777

7878
@retry(
79-
retry=retry_if_exception_type(TimeoutException),
80-
stop=stop_after_attempt(3),
79+
retry=retry_if_exception_type(exception_types=TimeoutException),
80+
stop=stop_after_attempt(max_attempt_number=3),
8181
wait=wait_exponential(multiplier=2, min=5, max=30),
8282
reraise=True,
8383
)
@@ -101,8 +101,8 @@ def _create_and_get_database_details_with_retries(
101101

102102

103103
@retry(
104-
retry=retry_if_exception_type(TimeoutException),
105-
stop=stop_after_attempt(3),
104+
retry=retry_if_exception_type(exception_types=TimeoutException),
105+
stop=stop_after_attempt(max_attempt_number=3),
106106
wait=wait_exponential(multiplier=2, min=5, max=30),
107107
reraise=True,
108108
)

0 commit comments

Comments
 (0)