mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-04 12:35:49 +08:00
[requests] requests.exceptions.JSONDecodeError inherits from json.JSONDecodeError (#15168)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user