Skip to content

Commit

Permalink
Change JSONResponse headers type annotation to match other Response c…
Browse files Browse the repository at this point in the history
…lasses (#2187)
  • Loading branch information
connesy authored Jun 16, 2023
1 parent 1c1043c commit 8d7a1ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion starlette/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def __init__(
self,
content: typing.Any,
status_code: int = 200,
headers: typing.Optional[typing.Dict[str, str]] = None,
headers: typing.Optional[typing.Mapping[str, str]] = None,
media_type: typing.Optional[str] = None,
background: typing.Optional[BackgroundTask] = None,
) -> None:
Expand Down

0 comments on commit 8d7a1ca

Please sign in to comment.