From d48d75e44778718124329a8bbfcc6ca53af57fd4 Mon Sep 17 00:00:00 2001 From: Quaylyn Rimer Date: Thu, 17 Jul 2025 19:10:47 -0600 Subject: [PATCH] docs: clarify timeout parameter uses seconds in Session.request - Updated Session.request() docstring to match requests.request() - Changed 'How long to wait' to 'How many seconds to wait' - Fixes inconsistency in timeout documentation Fixes #6813 --- src/requests/sessions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/requests/sessions.py b/src/requests/sessions.py index b387bc36df..731550de88 100644 --- a/src/requests/sessions.py +++ b/src/requests/sessions.py @@ -535,7 +535,7 @@ def request( for multipart encoding upload. :param auth: (optional) Auth tuple or callable to enable Basic/Digest/Custom HTTP Auth. - :param timeout: (optional) How long to wait for the server to send + :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