Browse Source

🐛 Fix `HTTPException` header type annotations (#9648)

pull/9650/head
Sebastián Ramírez 2 years ago
committed by GitHub
parent
commit
6dd8e567cc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      fastapi/exceptions.py

2
fastapi/exceptions.py

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

Loading…
Cancel
Save