Skip to content

Commit 09cb24d

Browse files
committed
Move JsonType to Any
1 parent 0b401c7 commit 09cb24d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/requests/_types.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,7 @@ class _ValidatedRequest(PreparedRequest):
138138
HooksType: TypeAlias = dict[str, list[HookType]] | None
139139
VerifyType: TypeAlias = bool | str
140140
CertType: TypeAlias = str | tuple[str, str] | None
141-
JsonType: TypeAlias = (
142-
None | bool | int | float | str | list["JsonType"] | dict[str, "JsonType"]
143-
)
141+
JsonType: TypeAlias = Any # Mapping invariance prevents refining
144142

145143
# TypedDicts for Unpack kwargs (PEP 692)
146144

0 commit comments

Comments
 (0)