Fix mypy configuration

This commit is contained in:
François Voron
2021-08-29 15:36:04 +02:00
parent 45354ee9f0
commit a95b6c45dd
2 changed files with 3 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
from typing import Callable, Dict, List, Optional, Type, cast
from typing import Callable, Dict, List, Optional, Type
import jwt
from fastapi import APIRouter, Depends, HTTPException, Query, Request, Response, status
@@ -151,8 +151,6 @@ def get_oauth_router(
# Authenticate
for backend in authenticator.backends:
if backend.name == state_data["authentication_backend"]:
return await backend.get_login_response(
cast(models.BaseUserDB, user), response
)
return await backend.get_login_response(user, response)
return router