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.
requests.compat.JSONDecodeError
1 parent 1858acb commit c48ede8Copy full SHA for c48ede8
stubs/requests/requests/compat.pyi
@@ -1,5 +1,8 @@
1
from builtins import bytes as bytes, str as str
2
from collections import OrderedDict as OrderedDict
3
+
4
+# If simplejson is installed, JSONDecodeError is actually imported from there.
5
+from json import JSONDecodeError as JSONDecodeError
6
from typing import Literal
7
from typing_extensions import TypeAlias
8
from urllib.parse import (
stubs/requests/requests/exceptions.pyi
@@ -1,8 +1,8 @@
-from json import JSONDecodeError as CompatJSONDecodeError
from typing import Any
from urllib3.exceptions import HTTPError as BaseHTTPError
+from .compat import JSONDecodeError as CompatJSONDecodeError
from .models import Request, Response
from .sessions import PreparedRequest
0 commit comments