8000 docs: Updated docstrings for timeout to be float instead of int (#631) · arpitjain799/twilio-python@c9b385b · GitHub
[go: up one dir, main page]

Skip to content

Commit c9b385b

Browse files
authored
docs: Updated docstrings for timeout to be float instead of int (twilio#631)
Fixes the docstrings for timeouts to indicate a `float` type, not `int`.
1 parent 85706b3 commit c9b385b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

twilio/base/domain.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ class Domain(object):
44
55
Like, `api.twilio.com` or `lookups.twilio.com'.
66
"""
7+
78
def __init__(self, twilio):
89
"""
910
:param Twilio twilio:
@@ -30,7 +31,7 @@ def request(self, method, uri, params=None, data=None, headers=None,
3031
:param object data: The request body.
3132
:param dict headers: The HTTP headers.
3233
:param tuple auth: Basic auth tuple of (username, password)
33-
:param int timeout: The request timeout.
34+
:param float timeout: The request timeout.
3435
:param bool allow_redirects: True if the client should follow HTTP
3536
redirects.
3637
"""

twilio/http/http_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ def __init__(self, pool_connections=True, request_hooks=None, timeout=None, logg
2222
2323
:param bool pool_connections
2424
:param request_hooks
25-
:param int timeout: Timeout for the requests.
26-
Timeout should never be zero (0) or less.
25+
:param float timeout: Timeout for the requests.
26+
Timeout should never be zero (0) or less.
2727
:param logger
2828
:param dict proxy: Http proxy for the requests session
2929
:param int max_retries: Maximum number of retries each request should attempt

0 commit comments

Comments
 (0)
0