File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 5
5
import tempfile
6
6
import time
7
7
import warnings
8
- from typing import Optional
8
+ from typing import Callable , Optional
9
9
10
10
from .exc import WaitTimeout
11
11
@@ -57,11 +57,11 @@ def retry(seconds: Optional[float] = RETRY_TIMEOUT_SECONDS) -> bool:
57
57
58
58
59
59
def retry_until (
60
- fun ,
61
- seconds = RETRY_TIMEOUT_SECONDS ,
60
+ fun : Callable ,
61
+ seconds : float = RETRY_TIMEOUT_SECONDS ,
62
62
* ,
63
- interval = RETRY_INTERVAL_SECONDS ,
64
- raises = True ,
63
+ interval : Optional [ float ] = RETRY_INTERVAL_SECONDS ,
64
+ raises : Optional [ bool ] = True ,
65
65
):
66
66
"""
67
67
Retry a function until a condition meets or the specified time passes.
@@ -71,7 +71,7 @@ def retry_until(
71
71
fun : callable
72
72
A function that will be called repeatedly until it returns ``True`` or
73
73
the specified time passes.
74
- seconds : int
74
+ seconds : float
75
75
Seconds to retry. Defaults to ``8``, which is configurable via
76
76
``RETRY_TIMEOUT_SECONDS`` environment variables.
77
77
interval : float
You can’t perform that action at this time.
0 commit comments