Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions stubs/requests/requests/compat.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
from builtins import bytes as bytes, str as str
from collections import OrderedDict as OrderedDict

# If simplejson is installed, JSONDecodeError is actually imported from there.
from json import JSONDecodeError as JSONDecodeError
from typing import Literal
from typing_extensions import TypeAlias
from urllib.parse import (
Expand Down
2 changes: 1 addition & 1 deletion stubs/requests/requests/exceptions.pyi
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Loading