cleanup
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
#!/usr/bin/env python3.12
|
||||
# pylint: disable=bare-except, broad-exception-caught, invalid-name
|
||||
|
||||
import logging
|
||||
import traceback
|
||||
@ -15,10 +14,10 @@ from .constructors import ValidRadioNextRequest, ValidRadioReshuffleRequest, Val
|
||||
ValidRadioQueueRemovalRequest, ValidRadioSongRequest, RadioException
|
||||
from uuid import uuid4 as uuid
|
||||
from typing import Optional
|
||||
from pydantic import BaseModel
|
||||
from fastapi import FastAPI, BackgroundTasks, Request, Response, HTTPException
|
||||
from fastapi.responses import RedirectResponse
|
||||
from aiohttp import ClientSession, ClientTimeout
|
||||
# pylint: disable=bare-except, broad-exception-caught, invalid-name
|
||||
|
||||
double_space = regex.compile(r'\s{2,}')
|
||||
|
||||
@ -26,10 +25,7 @@ double_space = regex.compile(r'\s{2,}')
|
||||
TODO:
|
||||
minor refactoring/type annotations/docstrings
|
||||
"""
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class Radio(FastAPI):
|
||||
"""Radio Endpoints"""
|
||||
def __init__(self, app: FastAPI, my_util, constants, glob_state) -> None: # pylint: disable=super-init-not-called
|
||||
|
Reference in New Issue
Block a user