From cd1299e45284b7a0603ca6a1c5729d622d3f4906 Mon Sep 17 00:00:00 2001 From: Akuli Date: Mon, 23 May 2022 20:50:05 +0300 Subject: [PATCH] requests: allow immutable headers --- stubs/requests/requests/sessions.pyi | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/stubs/requests/requests/sessions.pyi b/stubs/requests/requests/sessions.pyi index 96321399d9e0..7e7d6e902f11 100644 --- a/stubs/requests/requests/sessions.pyi +++ b/stubs/requests/requests/sessions.pyi @@ -66,16 +66,8 @@ _Params: TypeAlias = Union[ str | bytes, ] _TextMapping: TypeAlias = MutableMapping[str, str] -_HeadersMapping: TypeAlias = MutableMapping[str, str] | MutableMapping[str, bytes] | MutableMapping[str, str | bytes] -_HeadersUpdateMapping: TypeAlias = ( - MutableMapping[str, str] - | MutableMapping[str, bytes] - | MutableMapping[str, None] - | MutableMapping[str, str | bytes] - | MutableMapping[str, str | None] - | MutableMapping[str, bytes | None] - | MutableMapping[str, str | bytes | None] -) +_HeadersMapping: TypeAlias = Mapping[str, str | bytes] +_HeadersUpdateMapping: TypeAlias = Mapping[str, str | bytes | None] _Timeout: TypeAlias = Union[float, tuple[float, float], tuple[float, None]] _Verify: TypeAlias = bool | str