We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1322304 commit aff4aedCopy full SHA for aff4aed
stubs/requests/requests/exceptions.pyi
@@ -1,3 +1,4 @@
1
+from json import JSONDecodeError as CompatJSONDecodeError
2
from typing import Any
3
4
from urllib3.exceptions import HTTPError as BaseHTTPError
@@ -13,7 +14,7 @@ class RequestException(OSError):
13
14
) -> None: ...
15
16
class InvalidJSONError(RequestException): ...
-class JSONDecodeError(InvalidJSONError): ...
17
+class JSONDecodeError(InvalidJSONError, CompatJSONDecodeError): ...
18
19
class HTTPError(RequestException):
20
request: Request | PreparedRequest | Any
0 commit comments