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__(
9494 serializer : Callable [..., str ] = default_serializer ,
9595 deserializer : Callable [[str ], Any ] = default_deserializer ,
9696 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 ,
9898 ) -> None :
9999 if isinstance (hosts , str ):
100100 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):
9696
9797 def __init__ (
9898 self ,
99- connection_timeout : Union [int , float ] = DEFAULT_REQUEST_TIMEOUT ,
99+ connection_timeout : Union [int , float , None ] = DEFAULT_REQUEST_TIMEOUT ,
100100 pool_connections : int = DEFAULT_POOLSIZE ,
101101 pool_maxsize : int = DEFAULT_POOLSIZE ,
102102 pool_timeout : Union [int , float , None ] = None ,
@@ -150,7 +150,7 @@ class DefaultHTTPClient(HTTPClient):
150150
151151 def __init__ (
152152 self ,
153- request_timeout : Union [int , float ] = DEFAULT_REQUEST_TIMEOUT ,
153+ request_timeout : Union [int , float , None ] = DEFAULT_REQUEST_TIMEOUT ,
154154 retry_attempts : int = 3 ,
155155 backoff_factor : float = 1.0 ,
156156 pool_connections : int = 10 ,
You can’t perform that action at this time.
0 commit comments