From a58a2b7f88f9100a3399c22234c170bdd47dc91a Mon Sep 17 00:00:00 2001 From: ks129 <45097959+ks129@users.noreply.github.com> Date: Mon, 23 Nov 2020 16:33:35 +0200 Subject: Fix linting issues to make flake8 job passing --- backend/routes/auth/authorize.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'backend/routes/auth/authorize.py') diff --git a/backend/routes/auth/authorize.py b/backend/routes/auth/authorize.py index 768b9af..5de49f5 100644 --- a/backend/routes/auth/authorize.py +++ b/backend/routes/auth/authorize.py @@ -3,6 +3,7 @@ Use a token received from the Discord OAuth2 system to fetch user information. """ import jwt +from starlette.requests import Request from starlette.responses import JSONResponse from backend.constants import SECRET_KEY @@ -18,7 +19,7 @@ class AuthorizeRoute(Route): name = "authorize" path = "/authorize" - async def post(self, request): + async def post(self, request: Request) -> JSONResponse: data = await request.json() bearer_token = await fetch_bearer_token(data["token"]) -- cgit v1.2.3