Skip to content

Commit

Permalink
requests: set session.headers to MutableMapping (#9395)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilensky authored Dec 22, 2022
1 parent 9befe5f commit 6a7839f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stubs/requests/requests/sessions.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ class _Settings(TypedDict):

class Session(SessionRedirectMixin):
__attrs__: Any
headers: CaseInsensitiveDict[str | bytes]
# See https://github.com/psf/requests/issues/5020#issuecomment-989082461:
# requests sets this as a CaseInsensitiveDict, but users may set it to any MutableMapping
headers: MutableMapping[str, str | bytes]
auth: _Auth | None
proxies: _TextMapping
# Don't complain if:
Expand Down

0 comments on commit 6a7839f

Please sign in to comment.