diff --git a/stubs/requests/requests/exceptions.pyi b/stubs/requests/requests/exceptions.pyi index 99c8a9edc..794281b69 100644 --- a/stubs/requests/requests/exceptions.pyi +++ b/stubs/requests/requests/exceptions.pyi @@ -5,7 +5,7 @@ from .models import Request, Response class RequestException(OSError): response: Response | None request: Request | None - def __init__(self, *args, **kwargs) -> None: ... + def __init__(self, *args: object, request: Request | None = ..., response: Response | None = ...) -> None: ... class InvalidJSONError(RequestException): ... class JSONDecodeError(InvalidJSONError): ... @@ -13,6 +13,7 @@ class JSONDecodeError(InvalidJSONError): ... class HTTPError(RequestException): request: Request response: Response + def __init__(self, *args: object, request: Request, response: Response) -> None: ... class ConnectionError(RequestException): ... class ProxyError(ConnectionError): ...