Skip to content

Commit

Permalink
PreparedRequests cast headers to native strings as well
Browse files Browse the repository at this point in the history
  • Loading branch information
janrito committed May 16, 2022
1 parent 0d80bdf commit 072c537
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stubs/requests/requests/models.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class Request(RequestHooksMixin):
class PreparedRequest(RequestEncodingMixin, RequestHooksMixin):
method: str | None
url: str | None
headers: CaseInsensitiveDict[str | bytes]
headers: CaseInsensitiveDict[str]
body: bytes | str | None
hooks: Any
def __init__(self) -> None: ...
Expand Down

0 comments on commit 072c537

Please sign in to comment.