From bb9ff05df215c02f4367a2e87aa1c61afbc82c90 Mon Sep 17 00:00:00 2001 From: Ben Yarmis Date: Mon, 12 Dec 2022 10:39:24 -0600 Subject: [PATCH 1/2] Updated docs for timeout to be float instead of int --- twilio/base/domain.py | 2 +- twilio/http/http_client.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/twilio/base/domain.py b/twilio/base/domain.py index 459c1dfef3..93d1bb8118 100644 --- a/twilio/base/domain.py +++ b/twilio/base/domain.py @@ -30,7 +30,7 @@ def request(self, method, uri, params=None, data=None, headers=None, :param object data: The request body. :param dict headers: The HTTP headers. :param tuple auth: Basic auth tuple of (username, password) - :param int timeout: The request timeout. + :param float timeout: The request timeout. :param bool allow_redirects: True if the client should follow HTTP redirects. """ diff --git a/twilio/http/http_client.py b/twilio/http/http_client.py index d54774f4c2..dd67bb4ff2 100644 --- a/twilio/http/http_client.py +++ b/twilio/http/http_client.py @@ -22,8 +22,8 @@ def __init__(self, pool_connections=True, request_hooks=None, timeout=None, logg :param bool pool_connections :param request_hooks - :param int timeout: Timeout for the requests. - Timeout should never be zero (0) or less. + :param float timeout: Timeout for the requests. + Timeout should never be zero (0) or less. :param logger :param dict proxy: Http proxy for the requests session :param int max_retries: Maximum number of retries each request should attempt From 1f4b510bb4e087373aaf55474cc50a113dc52613 Mon Sep 17 00:00:00 2001 From: Ben Yarmis Date: Mon, 12 Dec 2022 14:40:37 -0600 Subject: [PATCH 2/2] Resolves FLK-D204 error, despite me not touching that file --- twilio/base/domain.py | 1 + 1 file changed, 1 insertion(+) diff --git a/twilio/base/domain.py b/twilio/base/domain.py index 93d1bb8118..968a968c07 100644 --- a/twilio/base/domain.py +++ b/twilio/base/domain.py @@ -4,6 +4,7 @@ class Domain(object): Like, `api.twilio.com` or `lookups.twilio.com'. """ + def __init__(self, twilio): """ :param Twilio twilio: