mirror of
https://github.com/fastapi/fastapi.git
synced 2026-10-23 02:15:26 -04:00
⬆ Upgrade Starlette from 0.18.0 to 0.19.0 (#4488)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
1 parent
9090c771ee
commit
86fa3cb24f
3 files changed
+8
-6
No files matched your search
@@ -12,8 +12,9 @@ class HTTPException(StarletteHTTPException):
|
||||
detail: Any = None,
|
||||
headers: Optional[Dict[str, Any]] = None,
|
||||
) -> None:
|
||||
super().__init__(status_code=status_code, detail=detail)
|
||||
self.headers = headers
|
||||
super().__init__(
|
||||
status_code=status_code, detail=detail, headers=headers # type: ignore
|
||||
)
|
||||
|
||||
|
||||
RequestErrorModel: Type[BaseModel] = create_model("Request")
|
||||
|
||||
Reference in new issue
Block a user