@@ -41,22 +41,22 @@ class RESTResponse(io.IOBase):
4141 Represents an HTTP response object in the synchronous client.
4242 """
4343
44- _response : urllib3 .BaseHTTPResponse
44+ _response : urllib3 .HTTPResponse
4545 _data : bytes
4646 _status : int
4747 _reason : str | None
4848
4949 def __init__ (
5050 self ,
51- response : urllib3 .BaseHTTPResponse ,
51+ response : urllib3 .HTTPResponse ,
5252 data : bytes ,
5353 status : int | None = None ,
5454 reason : str | None = None ,
5555 ) -> None :
5656 """
57- Initializes a RESTResponse with a urllib3.BaseHTTPResponse and corresponding data.
57+ Initializes a RESTResponse with a urllib3.HTTPResponse and corresponding data.
5858
59- :param resp: The urllib3.BaseHTTPResponse object.
59+ :param resp: The urllib3.HTTPResponse object.
6060 :param data: The raw byte data read from the response.
6161 """
6262 self ._response = response
@@ -65,16 +65,16 @@ def __init__(
6565 self ._reason = reason or response .reason
6666
6767 @property
68- def response (self ) -> urllib3 .BaseHTTPResponse :
68+ def response (self ) -> urllib3 .HTTPResponse :
6969 """
70- Returns the underlying urllib3.BaseHTTPResponse object.
70+ Returns the underlying urllib3.HTTPResponse object.
7171 """
7272 return self ._response
7373
7474 @response .setter
75- def response (self , value : urllib3 .BaseHTTPResponse ) -> None :
75+ def response (self , value : urllib3 .HTTPResponse ) -> None :
7676 """
77- Sets the underlying urllib3.BaseHTTPResponse object.
77+ Sets the underlying urllib3.HTTPResponse object.
7878 """
7979 self ._response = value
8080
@@ -318,7 +318,7 @@ def build_request(
318318 return args
319319
320320 def handle_response_exception (
321- self , response : RESTResponse | urllib3 .BaseHTTPResponse
321+ self , response : RESTResponse | urllib3 .HTTPResponse
322322 ) -> None :
323323 """
324324 Raises exceptions if response status indicates an error.
@@ -462,7 +462,7 @@ def request(
462462 post_params : dict | None = None ,
463463 _preload_content : bool = True ,
464464 _request_timeout : float | tuple | None = None ,
465- ) -> RESTResponse | urllib3 .BaseHTTPResponse :
465+ ) -> RESTResponse | urllib3 .HTTPResponse :
466466 """
467467 Executes a request and returns the response object.
468468
@@ -493,7 +493,7 @@ def request(
493493
494494 # Send request, collect response handler
495495 wrapped_response : RESTResponse | None = None
496- raw_response : urllib3 .BaseHTTPResponse = self .pool_manager .request (** args )
496+ raw_response : urllib3 .HTTPResponse = self .pool_manager .request (** args )
497497
498498 # If we want to preload the response, read it
499499 if _preload_content :
0 commit comments