Replace `dict` by `Mapping` on `HTTPException.headers` (#2749)

This commit is contained in:
rijenkii 2024-11-19 02:00:58 +07:00 committed by GitHub
parent 427a8dcf35
commit cc1e2d7a2f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ class HTTPException(Exception):
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