remove unused imports

This commit is contained in:
Izalia Mae 2024-02-15 22:05:22 -05:00
parent 8c85f23c86
commit aca34825b1
8 changed files with 2 additions and 18 deletions

View file

@ -11,7 +11,6 @@ import typing
from aiohttp import web from aiohttp import web
from aputils.signer import Signer from aputils.signer import Signer
from datetime import datetime, timedelta from datetime import datetime, timedelta
from gunicorn.app.wsgiapp import WSGIApplication
from . import logger as logging from . import logger as logging
from .cache import get_cache from .cache import get_cache
@ -23,9 +22,7 @@ from .views import VIEWS
from .views.api import handle_api_path from .views.api import handle_api_path
if typing.TYPE_CHECKING: if typing.TYPE_CHECKING:
from collections.abc import Awaitable
from tinysql import Database, Row from tinysql import Database, Row
from typing import Any
from .cache import Cache from .cache import Cache
from .misc import Message from .misc import Message

View file

@ -15,7 +15,6 @@ from .misc import Message, boolean
if typing.TYPE_CHECKING: if typing.TYPE_CHECKING:
from typing import Any from typing import Any
from collections.abc import Callable, Iterator from collections.abc import Callable, Iterator
from tinysql import Database
from .application import Application from .application import Application

View file

@ -10,14 +10,8 @@ from aputils.message import Message as ApMessage
from uuid import uuid4 from uuid import uuid4
if typing.TYPE_CHECKING: if typing.TYPE_CHECKING:
from collections.abc import Awaitable, Coroutine, Generator
from tinysql import Connection
from typing import Any from typing import Any
from .application import Application from .application import Application
from .cache import Cache
from .config import Config
from .database import Database
from .http_client import HttpClient
IS_DOCKER = bool(os.environ.get('DOCKER_RUNNING')) IS_DOCKER = bool(os.environ.get('DOCKER_RUNNING'))

View file

@ -17,7 +17,6 @@ if typing.TYPE_CHECKING:
from aiohttp.web import Request from aiohttp.web import Request
from aputils.signer import Signer from aputils.signer import Signer
from tinysql import Row from tinysql import Row
from ..database.connection import Connection
# pylint: disable=unused-argument # pylint: disable=unused-argument

View file

@ -17,7 +17,6 @@ from ..misc import Message, Response
if typing.TYPE_CHECKING: if typing.TYPE_CHECKING:
from aiohttp.web import Request from aiohttp.web import Request
from collections.abc import Coroutine from collections.abc import Coroutine
from ..database.connection import Connection
CONFIG_IGNORE = ( CONFIG_IGNORE = (

View file

@ -4,15 +4,10 @@ import typing
from .base import View, register_route from .base import View, register_route
from .. import __version__
from ..misc import Response from ..misc import Response
if typing.TYPE_CHECKING: if typing.TYPE_CHECKING:
from aiohttp.web import Request from aiohttp.web import Request
from aputils.signer import Signer
from collections.abc import Callable
from tinysql import Row
from ..database.connection import Connection
HOME_TEMPLATE = """ HOME_TEMPLATE = """

View file

@ -13,7 +13,6 @@ from ..misc import Response
if typing.TYPE_CHECKING: if typing.TYPE_CHECKING:
from aiohttp.web import Request from aiohttp.web import Request
from ..database.connection import Connection
VERSION = __version__ VERSION = __version__

View file

@ -42,3 +42,5 @@ console_scripts =
[flake8] [flake8]
select = F401 select = F401
per-file-ignores =
relay/views/__init__.py: F401