We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c54560c commit dce1003Copy full SHA for dce1003
libtmux/test.py
@@ -4,6 +4,7 @@
4
import os
5
import tempfile
6
import time
7
+from typing import Optional
8
9
from .exc import WaitTimeout
10
@@ -19,13 +20,13 @@
19
20
fixtures_dir = os.path.realpath(os.path.join(current_dir, "fixtures"))
21
22
-def retry(seconds=RETRY_TIMEOUT_SECONDS):
23
+def retry(seconds: Optional[float] = RETRY_TIMEOUT_SECONDS) -> bool:
24
"""
25
Retry a block of code until a time limit or ``break``.
26
27
Parameters
28
----------
- seconds : int
29
+ seconds : float
30
Seconds to retry, defaults to ``RETRY_TIMEOUT_SECONDS``, which is
31
configurable via environmental variables.
32
0 commit comments