Skip to content
Myr

Update JsonType containers to read-based collections (#7436)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Nate Prewitt · committed by GitHub · parent 2144213 · Browse files · 1 file+8 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−2 removed

  • other:+8 added−2 removed

1 file+8 added−2 removed

modified:src/requests/_types.py+8 added-2 removed
7 unmodified lines
8"""910from __future__ import annotations1112from collections.abc import Callable, Iterable, Mapping, MutableMapping12from collections.abc import Callable, Iterable, Mapping, MutableMapping, Sequence13from typing import (14 TYPE_CHECKING,15 Any,16 Protocol,
121 unmodified lines
138 HooksType: TypeAlias = dict[str, list[HookType]] | None139 VerifyType: TypeAlias = bool | str140 CertType: TypeAlias = str | tuple[str, str] | None141 JsonType: TypeAlias = (142 None | bool | int | float | str | list["JsonType"] | dict[str, "JsonType"]142 None143 | bool144 | int145 | float146 | str147 | Sequence["JsonType"]148 | Mapping[str, "JsonType"]149 )150151 # TypedDicts for Unpack kwargs (PEP 692)152
32 unmodified lines