vortico / flama

Fire up your models with the flame 🔥

Home Page:https://flama.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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]]].