From 5c8b89168088bfb2b37018f226c4eee9cadcb8b9 Mon Sep 17 00:00:00 2001 From: Tyler Epperson Date: Sun, 6 Apr 2025 18:12:06 -0400 Subject: [PATCH] [fix] Add noqa to all imports in the response module --- fastapi/responses.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/fastapi/responses.py b/fastapi/responses.py index 6cb52bba9..011c54427 100644 --- a/fastapi/responses.py +++ b/fastapi/responses.py @@ -1,8 +1,15 @@ from typing import Any -from starlette.responses import ( - JSONResponse, -) # noqa +from starlette.responses import ( # noqa: F401 + FileResponse, # noqa: F401 + HTMLResponse, # noqa: F401 + JSONResponse, # noqa: F401 + PlainTextResponse, # noqa: F401 + RedirectResponse, # noqa: F401 + Response, # noqa: F401 + StreamingResponse, # noqa: F401 +) + try: import ujson