From 3d813c9a7a67f6085a27c7122083a2a92bd41963 Mon Sep 17 00:00:00 2001 From: Randy Barlow Date: Sat, 6 May 2017 21:25:50 -0400 Subject: [PATCH] Specify that the timeout parameter is in seconds. Signed-off-by: Randy Barlow --- requests/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requests/api.py b/requests/api.py index 7430474f..0b24e0ff 100644 --- a/requests/api.py +++ b/requests/api.py @@ -29,7 +29,7 @@ def request(method, url, **kwargs): defining the content type of the given file and ``custom_headers`` a dict-like object containing additional headers to add for the file. :param auth: (optional) Auth tuple to enable Basic/Digest/Custom HTTP Auth. - :param timeout: (optional) How long to wait for the server to send data + :param timeout: (optional) How many seconds to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) ` tuple. :type timeout: float or tuple