Skip to content

Commit d9aee0c

Browse files
Dominic ReinhardDominic Reinhard
authored andcommitted
Update RestClient timeout docstring to document that it can be a tuple.
1 parent 9f05342 commit d9aee0c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

telesign/rest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import unicode_literals
22

3+
from requests import post
34
import hmac
45
import uuid
56
from base64 import b64encode, b64decode
@@ -58,7 +59,8 @@ def __init__(self,
5859
:param api_key: Your api_key string associated with your account.
5960
:param rest_endpoint: (optional) Override the default rest_endpoint to target another endpoint string.
6061
:param proxies: (optional) Dictionary mapping protocol or protocol and hostname to the URL of the proxy.
61-
:param timeout: (optional) How long to wait for the server to send data before giving up, as a float.
62+
:param timeout: (optional) How long to wait for the server to send data before giving up, as a float,
63+
or as a (connect timeout, read timeout) tuple
6264
"""
6365
self.customer_id = customer_id
6466
self.api_key = api_key

0 commit comments

Comments
 (0)