]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
🐛 Fix `HTTPException` header type annotations (#9648)
authorSebastián Ramírez <tiangolo@gmail.com>
Sat, 10 Jun 2023 17:23:12 +0000 (19:23 +0200)
committerGitHub <noreply@github.com>
Sat, 10 Jun 2023 17:23:12 +0000 (19:23 +0200)
fastapi/exceptions.py

index ca097b1cef5f8dc697f66ee18df6c3ca6e5756de..cac5330a229104ee2e43324bda00559cd75b1920 100644 (file)
@@ -11,7 +11,7 @@ class HTTPException(StarletteHTTPException):
         self,
         status_code: int,
         detail: Any = None,
-        headers: Optional[Dict[str, Any]] = None,
+        headers: Optional[Dict[str, str]] = None,
     ) -> None:
         super().__init__(status_code=status_code, detail=detail, headers=headers)