Skip to content

Commit 8b33bb1

Browse files
committed
Allow None for max timeout
1 parent 8d082a6 commit 8b33bb1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/vws/vws.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def wait_for_target_processed(
310310
self,
311311
target_id: str,
312312
seconds_between_requests: float = 0.2,
313-
timeout_seconds: float = 60 * 5,
313+
timeout_seconds: Optional[float] = 60 * 5,
314314
) -> None:
315315
"""
316316
Wait up to five minutes (arbitrary) for a target to get past the
@@ -324,7 +324,8 @@ def wait_for_target_processed(
324324
decrease the number of calls made to the API, to decrease the
325325
likelihood of hitting the request quota.
326326
timeout_seconds: The maximum number of seconds to wait for the
327-
target to be processed.
327+
target to be processed. If ``None`` is given, no maximum is
328+
applied.
328329
329330
Raises:
330331
~vws.exceptions.AuthenticationFailure: The secret key is not

0 commit comments

Comments
 (0)