Change Response.headers from MutableMapping to CaseInsensitiveDict (#3610)

This fixes a type error when doing `response.headers.lower_items()`, a method
present on CaseInsensitiveDict
This commit is contained in:
Cal Paterson authored and Sebastian Rittau committed 2020-01-14 12:41:30 +01:00
1 parent 394ee4a9ae
commit 1421fb1074
1 file changed
+1 -1
+1 -1
View File
@@ -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