diff --git a/stubs/requests/requests/exceptions.pyi b/stubs/requests/requests/exceptions.pyi index 130bce725046..24bfd700578c 100644 --- a/stubs/requests/requests/exceptions.pyi +++ b/stubs/requests/requests/exceptions.pyi @@ -1,3 +1,4 @@ +from json import JSONDecodeError as CompatJSONDecodeError from typing import Any from urllib3.exceptions import HTTPError as BaseHTTPError @@ -13,7 +14,7 @@ class RequestException(OSError): ) -> None: ... class InvalidJSONError(RequestException): ... -class JSONDecodeError(InvalidJSONError): ... +class JSONDecodeError(InvalidJSONError, CompatJSONDecodeError): ... class HTTPError(RequestException): request: Request | PreparedRequest | Any