⬆ 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:
Marcelo TrylesinskiandSebastián Ramírez authored and GitHub committed 2022-05-09 13:06:42 -05:00
1 parent 9090c771ee
commit 86fa3cb24f
3 files changed
+8 -6

No files matched your search

+3 -2
View File
@@ -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")