mirror of https://github.com/tiangolo/fastapi.git
Fix `HTTPException.headers` type
This commit is contained in:
parent
785b95f1b4
commit
741b7dab6e
|
|
@ -1,4 +1,4 @@
|
|||
from typing import Any, Dict, Optional, Sequence, Type, Union
|
||||
from typing import Any, Mapping, Optional, Sequence, Type, Union
|
||||
|
||||
from pydantic import BaseModel, create_model
|
||||
from starlette.exceptions import HTTPException as StarletteHTTPException
|
||||
|
|
@ -54,7 +54,7 @@ class HTTPException(StarletteHTTPException):
|
|||
),
|
||||
] = None,
|
||||
headers: Annotated[
|
||||
Optional[Dict[str, str]],
|
||||
Optional[Mapping[str, str]],
|
||||
Doc(
|
||||
"""
|
||||
Any headers to send to the client in the response.
|
||||
|
|
|
|||
Loading…
Reference in New Issue