Skip to content

Commit

Permalink
Format debug.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex committed Jun 21, 2022
1 parent 10328f0 commit 18e9915
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions uvicorn/middleware/debug.py
Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 18e9915

Please sign in to comment.