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
2020-01-14 11:41:30 +00:00
committed by Sebastian Rittau
parent 394ee4a9ae
commit 1421fb1074

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