Skip to content

Commit c44fb19

Browse files
committed
Broaden JSON typing from dict to Mapping
1 parent 0b401c7 commit c44fb19

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/requests/_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class _ValidatedRequest(PreparedRequest):
139139
VerifyType: TypeAlias = bool | str
140140
CertType: TypeAlias = str | tuple[str, str] | None
141141
JsonType: TypeAlias = (
142-
None | bool | int | float | str | list["JsonType"] | dict[str, "JsonType"]
142+
None | bool | int | float | str | list["JsonType"] | Mapping[str, "JsonType"]
143143
)
144144

145145
# TypedDicts for Unpack kwargs (PEP 692)

0 commit comments

Comments
 (0)