From 1421fb1074ea14dc29d17a5958522b451db93f3b Mon Sep 17 00:00:00 2001 From: Cal Paterson Date: Tue, 14 Jan 2020 11:41:30 +0000 Subject: [PATCH] Change Response.headers from MutableMapping to CaseInsensitiveDict (#3610) This fixes a type error when doing `response.headers.lower_items()`, a method present on CaseInsensitiveDict --- third_party/2and3/requests/models.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/2and3/requests/models.pyi b/third_party/2and3/requests/models.pyi index 497889503..f69fe27a5 100644 --- a/third_party/2and3/requests/models.pyi +++ b/third_party/2and3/requests/models.pyi @@ -102,7 +102,7 @@ class PreparedRequest(RequestEncodingMixin, RequestHooksMixin): class Response: __attrs__: Any status_code: int - headers: MutableMapping[str, str] + headers: CaseInsensitiveDict[str] raw: Any url: str encoding: str