File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ def __init__(
94
94
serializer : Callable [..., str ] = default_serializer ,
95
95
deserializer : Callable [[str ], Any ] = default_deserializer ,
96
96
verify_override : Union [bool , str , None ] = None ,
97
- request_timeout : Union [int , float ] = DEFAULT_REQUEST_TIMEOUT ,
97
+ request_timeout : Union [int , float , None ] = DEFAULT_REQUEST_TIMEOUT ,
98
98
) -> None :
99
99
if isinstance (hosts , str ):
100
100
self ._hosts = [host .strip ("/" ) for host in hosts .split ("," )]
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ class DefaultHTTPAdapter(HTTPAdapter):
96
96
97
97
def __init__ (
98
98
self ,
99
- connection_timeout : Union [int , float ] = DEFAULT_REQUEST_TIMEOUT ,
99
+ connection_timeout : Union [int , float , None ] = DEFAULT_REQUEST_TIMEOUT ,
100
100
pool_connections : int = DEFAULT_POOLSIZE ,
101
101
pool_maxsize : int = DEFAULT_POOLSIZE ,
102
102
pool_timeout : Union [int , float , None ] = None ,
@@ -150,7 +150,7 @@ class DefaultHTTPClient(HTTPClient):
150
150
151
151
def __init__ (
152
152
self ,
153
- request_timeout : Union [int , float ] = DEFAULT_REQUEST_TIMEOUT ,
153
+ request_timeout : Union [int , float , None ] = DEFAULT_REQUEST_TIMEOUT ,
154
154
retry_attempts : int = 3 ,
155
155
backoff_factor : float = 1.0 ,
156
156
pool_connections : int = 10 ,
You can’t perform that action at this time.
0 commit comments