Apply formatting

This commit is contained in:
François Voron
2021-08-29 17:00:59 +02:00
parent 83873338f3
commit ce69ea5b8a
3 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
from typing import Any, Optional, List
from typing import Any, List, Optional
import jwt
from fastapi import Response
@ -32,7 +32,7 @@ class JWTAuthentication(BaseAuthentication[str]):
lifetime_seconds: int,
tokenUrl: str = "auth/jwt/login",
name: str = "jwt",
token_audience: List[str] = ["fastapi-users:auth"]
token_audience: List[str] = ["fastapi-users:auth"],
):
super().__init__(name, logout=False)
self.scheme = OAuth2PasswordBearer(tokenUrl, auto_error=False)

View File

@ -1,6 +1,6 @@
from typing import Any, Callable, Dict, Optional, Type, cast
from fastapi import APIRouter, Depends, HTTPException, Request, status, Response
from fastapi import APIRouter, Depends, HTTPException, Request, Response, status
from pydantic import UUID4
from fastapi_users import models

View File

@ -1,4 +1,4 @@
from typing import Any, Awaitable, Union, Type
from typing import Any, Awaitable, Type, Union
try:
from typing import Protocol