From 18e9915645cba3a5f35ab01b00ca2bf803d42913 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Tue, 21 Jun 2022 20:31:34 +0200 Subject: [PATCH] Format debug.py --- uvicorn/middleware/debug.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) 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)