From 366d59a9f44db050d4cb4b3fa33f54995a8f68b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Sun, 21 Sep 2025 15:48:32 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Rename=20AsyncExitStackMid?= =?UTF-8?q?dleware=20name=20in=20scope=20do=20differentiate=20it=20from=20?= =?UTF-8?q?dependencies=20AsyncExitStack?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastapi/middleware/asyncexitstack.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fastapi/middleware/asyncexitstack.py b/fastapi/middleware/asyncexitstack.py index 808da413c..6723638f1 100644 --- a/fastapi/middleware/asyncexitstack.py +++ b/fastapi/middleware/asyncexitstack.py @@ -4,7 +4,9 @@ from starlette.types import ASGIApp, Receive, Scope, Send class AsyncExitStackMiddleware: - def __init__(self, app: ASGIApp, context_name: str = "fastapi_astack") -> None: + def __init__( + self, app: ASGIApp, context_name: str = "fastapi_middleware_astack" + ) -> None: self.app = app self.context_name = context_name