We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e195b1 commit 395dce5Copy full SHA for 395dce5
src/node.py
@@ -1621,7 +1621,7 @@ def poll_query_until(self,
1621
dbname=None,
1622
username=None,
1623
max_attempts=0,
1624
- sleep_time=1,
+ sleep_time: typing.Union[int, float] = 1,
1625
expected=True,
1626
commit=True,
1627
suppress=None):
@@ -1647,7 +1647,9 @@ def poll_query_until(self,
1647
"""
1648
1649
# sanity checks
1650
+ assert type(max_attempts) == int # noqa: E721
1651
assert max_attempts >= 0
1652
+ assert type(sleep_time) in [int, float]
1653
assert sleep_time > 0
1654
attempts = 0
1655
while max_attempts == 0 or attempts < max_attempts:
0 commit comments