rijenkii
5 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
3 additions and
3 deletions
-
fastapi/exceptions.py
-
pyproject.toml
|
|
@ -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. |
|
|
|
|
|
@ -43,7 +43,7 @@ classifiers = [ |
|
|
|
"Topic :: Internet :: WWW/HTTP", |
|
|
|
] |
|
|
|
dependencies = [ |
|
|
|
"starlette>=0.40.0,<0.47.0", |
|
|
|
"starlette>=0.41.3,<0.47.0", |
|
|
|
"pydantic>=1.7.4,!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0", |
|
|
|
"typing-extensions>=4.8.0", |
|
|
|
] |
|
|
|