ultimate-fastapi-tutorial icon indicating copy to clipboard operation
ultimate-fastapi-tutorial copied to clipboard

Fix incorrect return type annotation for root function from dict to HTMLResponse

Open GitZhiQing opened this issue 1 year ago • 0 comments

As per the Using Jinja2Templates section of the FastAPI advanced user guide, functions returning templates should have their return type annotated as HTMLResponse.

GitZhiQing avatar Sep 05 '24 18:09 GitZhiQing