From dff6b655172f6983eeb25ea6d016812d945d03d4 Mon Sep 17 00:00:00 2001 From: Deka Jello Date: Fri, 19 Apr 2024 08:43:32 -0500 Subject: [PATCH] Tidy up unused symbols, spacing --- server/szurubooru/migrations/env.py | 2 -- server/szurubooru/search/configs/util.py | 1 - server/szurubooru/search/typing.py | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/server/szurubooru/migrations/env.py b/server/szurubooru/migrations/env.py index 9c3bcd61..cd4f6ad1 100644 --- a/server/szurubooru/migrations/env.py +++ b/server/szurubooru/migrations/env.py @@ -11,7 +11,6 @@ import sys from time import sleep import alembic -#from alembic_utils.replaceable_entity import register_entities import sqlalchemy as sa @@ -22,7 +21,6 @@ sys.path.append(os.path.join(dir_to_self, *[os.pardir] * 2)) import szurubooru.config # noqa: E402 import szurubooru.model.base # noqa: E402 - # fmt: on diff --git a/server/szurubooru/search/configs/util.py b/server/szurubooru/search/configs/util.py index fd40b43d..58e6ebe5 100644 --- a/server/szurubooru/search/configs/util.py +++ b/server/szurubooru/search/configs/util.py @@ -205,7 +205,6 @@ def create_subquery_filter( filter_column: SaColumn, filter_factory: SaColumn, subquery_decorator: Callable[[SaQuery], None] = None, - order: SaQuery = None, ) -> Filter: filter_func = filter_factory(filter_column) diff --git a/server/szurubooru/search/typing.py b/server/szurubooru/search/typing.py index 011f7eae..686c2cb6 100644 --- a/server/szurubooru/search/typing.py +++ b/server/szurubooru/search/typing.py @@ -1,4 +1,4 @@ -from typing import Any, Callable, Union +from typing import Any, Callable SaColumn = Any SaQuery = Any