HTTPException types are too specific
perdy opened this issue · comments
Current HTTPException init method is too specific for it s detail parameter types:
def __init__(
self,
status_code: int,
detail: t.Optional[t.Union[str, t.Dict[str, t.List[str]]]] = None,
headers: t.Optional[dict] = None,
) -> None:
...
It could be the more generic t.Optional[t.Union[str, t.Dict[str, t.Any]]]
.