diff --git a/uvicorn/middleware/debug.py b/uvicorn/middleware/debug.py index 99f9c7eb7..f94b5f670 100644 --- a/uvicorn/middleware/debug.py +++ b/uvicorn/middleware/debug.py @@ -20,7 +20,10 @@ def __init__(self, content: str, status_code: int): self.status_code = status_code async def __call__( - self, scope: "WWWScope", receive: "ASGIReceiveCallable", send: "ASGISendCallable" + self, + scope: "WWWScope", + receive: "ASGIReceiveCallable", + send: "ASGISendCallable", ) -> None: response_start: "HTTPResponseStartEvent" = { "type": "http.response.start", @@ -43,7 +46,10 @@ def __init__(self, content: str, status_code: int): self.status_code = status_code async def __call__( - self, scope: "WWWScope", receive: "ASGIReceiveCallable", send: "ASGISendCallable" + self, + scope: "WWWScope", + receive: "ASGIReceiveCallable", + send: "ASGISendCallable", ) -> None: response_start: "HTTPResponseStartEvent" = { "type": "http.response.start", @@ -76,7 +82,10 @@ def __init__(self, app: "ASGI3Application"): self.app = app async def __call__( - self, scope: "WWWScope", receive: "ASGIReceiveCallable", send: "ASGISendCallable" + self, + scope: "WWWScope", + receive: "ASGIReceiveCallable", + send: "ASGISendCallable", ) -> None: if scope["type"] != "http": return await self.app(scope, receive, send)