Removed unused imports

This commit is contained in:
Profitroll 2023-02-16 14:56:28 +01:00
parent c353a4a4df
commit fa3aca30c2
4 changed files with 3 additions and 13 deletions

View File

@ -1,8 +1,5 @@
from typing import Literal from typing import Literal
from fastapi import FastAPI, Request
from fastapi.responses import JSONResponse
from modules.utils import configGet
class AlbumNotFoundError(Exception): class AlbumNotFoundError(Exception):
def __init__(self, id: str): def __init__(self, id: str):

View File

@ -1,4 +1,4 @@
from typing import Dict, List, Literal, Union from typing import List, Union
from pydantic import BaseModel from pydantic import BaseModel
class Photo(BaseModel): class Photo(BaseModel):

View File

@ -1,9 +1,8 @@
from datetime import timedelta from datetime import timedelta
from classes.exceptions import UserCredentialsInvalid from classes.exceptions import UserCredentialsInvalid
from modules.app import app from modules.app import app
from modules.utils import configGet
from fastapi import Depends, HTTPException from fastapi import Depends
from fastapi.security import ( from fastapi.security import (
OAuth2PasswordRequestForm, OAuth2PasswordRequestForm,
) )

View File

@ -1,12 +1,6 @@
from os import sep from fastapi import FastAPI
from fastapi import FastAPI, Security, HTTPException
from starlette.status import HTTP_401_UNAUTHORIZED, HTTP_403_FORBIDDEN
from fastapi.security import APIKeyQuery, APIKeyHeader, APIKeyCookie
from fastapi.openapi.docs import get_swagger_ui_html, get_redoc_html from fastapi.openapi.docs import get_swagger_ui_html, get_redoc_html
from starlette.status import HTTP_401_UNAUTHORIZED
from fastapi.openapi.models import APIKey
from modules.utils import configGet, jsonLoad
app = FastAPI(title="END PLAY Photos", docs_url=None, redoc_url=None, version="0.1") app = FastAPI(title="END PLAY Photos", docs_url=None, redoc_url=None, version="0.1")