Description
The current documentation for the timeout parameter in requests.get() does not clearly explain that it applies to both connection and read timeouts unless specified otherwise.
This can be confusing for users who expect it to behave as a total request timeout.
Suggested Improvement
Add clarification in the docs that:
- A single float applies to both connect and read timeouts
- A tuple can be used to specify them separately
Example:
requests.get(url, timeout=(connect_timeout, read_timeout))
Description
The current documentation for the
timeoutparameter inrequests.get()does not clearly explain that it applies to both connection and read timeouts unless specified otherwise.This can be confusing for users who expect it to behave as a total request timeout.
Suggested Improvement
Add clarification in the docs that:
Example: