Skip to content

Commit

Permalink
Use BaseHTTPResponse rather than HTTPResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMi committed Feb 20, 2024
1 parent b20322e commit 20170af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/urllib3/util/retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def _is_method_retryable(self, method: str) -> bool:
return False
return True

def is_response_retry(self, method: str, response: "HTTPResponse") -> bool:
def is_response_retry(self, method: str, response: BaseHTTPResponse) -> bool:
"""Is this method/response retryable? (Based on allowlists and control
variables such as the number of total retries to allow, whether to
respect the Retry-After header, whether this header is present, and
Expand Down

0 comments on commit 20170af

Please sign in to comment.