mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
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:
committed by
Sebastian Rittau
parent
394ee4a9ae
commit
1421fb1074
2
third_party/2and3/requests/models.pyi
vendored
2
third_party/2and3/requests/models.pyi
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user