mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-07 20:54:32 +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:
1 parent
394ee4a9ae
commit
1421fb1074
1 file changed
+1
-1
+1
-1
@@ -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