Skip to content

Commit 2f4bbd9

Browse files
Merge pull request #896 from adamtheturtle/allow-none
Allow None for timeout_seconds
2 parents 8d082a6 + a94d920 commit 2f4bbd9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/vws/vws.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ def _target_api_request(
4848
content: The request body which will be used in the request.
4949
request_path: The path to the endpoint which will be used in the
5050
request.
51-
5251
base_vws_url: The base URL for the VWS API.
5352
5453
Returns:
@@ -310,7 +309,7 @@ def wait_for_target_processed(
310309
self,
311310
target_id: str,
312311
seconds_between_requests: float = 0.2,
313-
timeout_seconds: float = 60 * 5,
312+
timeout_seconds: Optional[float] = 60 * 5,
314313
) -> None:
315314
"""
316315
Wait up to five minutes (arbitrary) for a target to get past the
@@ -324,7 +323,8 @@ def wait_for_target_processed(
324323
decrease the number of calls made to the API, to decrease the
325324
likelihood of hitting the request quota.
326325
timeout_seconds: The maximum number of seconds to wait for the
327-
target to be processed.
326+
target to be processed. If ``None`` is given, no maximum is
327+
applied.
328328
329329
Raises:
330330
~vws.exceptions.AuthenticationFailure: The secret key is not

0 commit comments

Comments
 (0)