From f77d0f80a809bd597186f52d73d174afbe51e440 Mon Sep 17 00:00:00 2001 From: Akuli Date: Thu, 26 May 2022 06:22:05 +0300 Subject: [PATCH] requests: allow immutable headers (#7932) --- 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