From 9a529a572dd22eba6f16843c2646446c4632ec0c Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 18 Aug 2020 03:47:27 +0200 Subject: [PATCH] Reformat code --- royalnet/alchemy/alchemy.py | 3 +-- royalnet/commands/commanddata.py | 1 - royalnet/commands/heraldevent.py | 2 +- royalnet/constellation/star.py | 2 +- royalnet/utils/__init__.py | 2 +- royalnet/utils/taskslist.py | 3 ++- 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/royalnet/alchemy/alchemy.py b/royalnet/alchemy/alchemy.py index eb08be3f..30cd708f 100644 --- a/royalnet/alchemy/alchemy.py +++ b/royalnet/alchemy/alchemy.py @@ -1,6 +1,6 @@ -from typing import * import contextlib import logging +from typing import * from sqlalchemy import create_engine from sqlalchemy.exc import ProgrammingError @@ -52,7 +52,6 @@ class Alchemy: except ProgrammingError: log.warning("Skipping table creation, as it is probably being created by a different process.") - def get(self, table: Union[str, type]) -> DeclarativeMeta: """Get the table with a specified name or class. diff --git a/royalnet/commands/commanddata.py b/royalnet/commands/commanddata.py index 72dd036e..82c4f040 100644 --- a/royalnet/commands/commanddata.py +++ b/royalnet/commands/commanddata.py @@ -3,7 +3,6 @@ import io import logging from typing import * -import royalnet.utils as ru from royalnet.backpack.tables.users import User from .errors import UnsupportedError diff --git a/royalnet/commands/heraldevent.py b/royalnet/commands/heraldevent.py index 2883686a..df5a528b 100644 --- a/royalnet/commands/heraldevent.py +++ b/royalnet/commands/heraldevent.py @@ -1,5 +1,5 @@ -from typing import TYPE_CHECKING, Union import asyncio as aio +from typing import TYPE_CHECKING, Union if TYPE_CHECKING: from ..serf import Serf diff --git a/royalnet/constellation/star.py b/royalnet/constellation/star.py index c100ede0..c4143734 100644 --- a/royalnet/constellation/star.py +++ b/royalnet/constellation/star.py @@ -1,6 +1,6 @@ +import abc from typing import * -import abc from starlette.requests import Request from starlette.responses import Response diff --git a/royalnet/utils/__init__.py b/royalnet/utils/__init__.py index 97ea0ad4..fa7c78b9 100644 --- a/royalnet/utils/__init__.py +++ b/royalnet/utils/__init__.py @@ -6,8 +6,8 @@ from .royaltyping import JSON from .sentry import init_sentry, sentry_exc, sentry_wrap, sentry_async_wrap from .sleep_until import sleep_until from .strip_tabs import strip_tabs -from .urluuid import to_urluuid, from_urluuid from .taskslist import TaskList +from .urluuid import to_urluuid, from_urluuid __all__ = [ "asyncify", diff --git a/royalnet/utils/taskslist.py b/royalnet/utils/taskslist.py index ee7d397e..cb8c7130 100644 --- a/royalnet/utils/taskslist.py +++ b/royalnet/utils/taskslist.py @@ -1,6 +1,7 @@ -from typing import * import asyncio as aio import logging +from typing import * + from .sentry import sentry_exc log = logging.getLogger(__name__)