From 6f7eb28127011b54b9db44c01128fbeefdffb124 Mon Sep 17 00:00:00 2001 From: Alejandro Giacometti Date: Mon, 9 May 2022 15:06:18 +0100 Subject: [PATCH] reverse bytes type on session headers + these are casted to native strings here https://github.com/psf/requests/blob/40956723f27daf5e0d9759208ca69cef236ab339/requests/models.py#L484 --- stubs/requests/requests/sessions.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/requests/requests/sessions.pyi b/stubs/requests/requests/sessions.pyi index 49c69d3da6a6..fe948a09f4b8 100644 --- a/stubs/requests/requests/sessions.pyi +++ b/stubs/requests/requests/sessions.pyi @@ -82,7 +82,7 @@ _Verify: TypeAlias = bool | str class Session(SessionRedirectMixin): __attrs__: Any - headers: CaseInsensitiveDict[str | bytes] + headers: CaseInsensitiveDict[str] auth: _Auth | None proxies: _TextMapping hooks: _Hooks