Skip to content

Commit dce1003

Browse files
committed
chore(retry): Type annotation
1 parent c54560c commit dce1003

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libtmux/test.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import os
55
import tempfile
66
import time
7+
from typing import Optional
78

89
from .exc import WaitTimeout
910

@@ -19,13 +20,13 @@
1920
fixtures_dir = os.path.realpath(os.path.join(current_dir, "fixtures"))
2021

2122

22-
def retry(seconds=RETRY_TIMEOUT_SECONDS):
23+
def retry(seconds: Optional[float] = RETRY_TIMEOUT_SECONDS) -> bool:
2324
"""
2425
Retry a block of code until a time limit or ``break``.
2526
2627
Parameters
2728
----------
28-
seconds : int
29+
seconds : float
2930
Seconds to retry, defaults to ``RETRY_TIMEOUT_SECONDS``, which is
3031
configurable via environmental variables.
3132

0 commit comments

Comments
 (0)