Skip to content

Commit 66dc695

Browse files
rijenkiialejsdevYuriiMotovpre-commit-ci-lite[bot]
authored
✨ Replace dict by Mapping on HTTPException.headers (fastapi#12997)
Co-authored-by: Alejandra <90076947+alejsdev@users.noreply.github.com> Co-authored-by: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
1 parent e94028a commit 66dc695

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fastapi/exceptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from collections.abc import Sequence
1+
from collections.abc import Mapping, Sequence
22
from typing import Annotated, Any, Optional, TypedDict, Union
33

44
from annotated_doc import Doc
@@ -68,7 +68,7 @@ def __init__(
6868
),
6969
] = None,
7070
headers: Annotated[
71-
Optional[dict[str, str]],
71+
Optional[Mapping[str, str]],
7272
Doc(
7373
"""
7474
Any headers to send to the client in the response.

0 commit comments

Comments
 (0)