Skip to content

Commit 21ae7d0

Browse files
authored
docs: fix syntax error in wait_chain docstring example (#548)
Add missing closing bracket in the wait_chain docstring example code. Also fix the multi-line string in the print statement. Closes #250
1 parent ef12c9e commit 21ae7d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tenacity/wait.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ class wait_chain(wait_base):
9898
9999
@retry(wait=wait_chain(*[wait_fixed(1) for i in range(3)] +
100100
[wait_fixed(2) for j in range(5)] +
101-
[wait_fixed(5) for k in range(4)))
101+
[wait_fixed(5) for k in range(4)]))
102102
def wait_chained():
103-
print("Wait 1s for 3 attempts, 2s for 5 attempts and 5s
104-
thereafter.")
103+
print("Wait 1s for 3 attempts, 2s for 5 attempts and 5s "
104+
"thereafter.")
105105
"""
106106

107107
def __init__(self, *strategies: wait_base) -> None:

0 commit comments

Comments
 (0)