diff --git a/stubs/requests/requests/exceptions.pyi b/stubs/requests/requests/exceptions.pyi index 99f4448d9..130bce725 100644 --- a/stubs/requests/requests/exceptions.pyi +++ b/stubs/requests/requests/exceptions.pyi @@ -1,3 +1,5 @@ +from typing import Any + from urllib3.exceptions import HTTPError as BaseHTTPError from .models import Request, Response @@ -12,7 +14,11 @@ class RequestException(OSError): class InvalidJSONError(RequestException): ... class JSONDecodeError(InvalidJSONError): ... -class HTTPError(RequestException): ... + +class HTTPError(RequestException): + request: Request | PreparedRequest | Any + response: Response | Any + class ConnectionError(RequestException): ... class ProxyError(ConnectionError): ... class SSLError(ConnectionError): ...