Skip to content

Commit

Permalink
Replace dict by Mapping on HTTPException.headers (#2749)
Browse files Browse the repository at this point in the history
  • Loading branch information
rijenkii authored Nov 18, 2024
1 parent 427a8dc commit cc1e2d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion starlette/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def __init__(
self,
status_code: int,
detail: str | None = None,
headers: dict[str, str] | None = None,
headers: typing.Mapping[str, str] | None = None,
) -> None:
if detail is None:
detail = http.HTTPStatus(status_code).phrase
Expand Down

0 comments on commit cc1e2d7

Please sign in to comment.