Skip to content

Commit c64606c

Browse files
authored
update docs for timeout arguments to clarify that it uses seconds
1 parent 7335bbf commit c64606c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/requests/adapters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def send(
147147
148148
:param request: The :class:`PreparedRequest <PreparedRequest>` being sent.
149149
:param stream: (optional) Whether to stream the request content.
150-
:param timeout: (optional) How long to wait for the server to send
150+
:param timeout: (optional) How many seconds to wait for the server to send
151151
data before giving up, as a float, or a :ref:`(connect timeout,
152152
read timeout) <timeouts>` tuple.
153153
:type timeout: float or tuple
@@ -617,7 +617,7 @@ def send(
617617
618618
:param request: The :class:`PreparedRequest <PreparedRequest>` being sent.
619619
:param stream: (optional) Whether to stream the request content.
620-
:param timeout: (optional) How long to wait for the server to send
620+
:param timeout: (optional) How many seconds to wait for the server to send
621621
data before giving up, as a float, or a :ref:`(connect timeout,
622622
read timeout) <timeouts>` tuple.
623623
:type timeout: float or tuple or urllib3 Timeout object

src/requests/sessions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ def request(
535535
for multipart encoding upload.
536536
:param auth: (optional) Auth tuple or callable to enable
537537
Basic/Digest/Custom HTTP Auth.
538-
:param timeout: (optional) How long to wait for the server to send
538+
:param timeout: (optional) How many seconds to wait for the server to send
539539
data before giving up, as a float, or a :ref:`(connect timeout,
540540
read timeout) <timeouts>` tuple.
541541
:type timeout: float or tuple

0 commit comments

Comments
 (0)