1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Reformat code

This commit is contained in:
Steffo 2020-08-18 03:47:27 +02:00
parent ec7da50412
commit 9a529a572d
6 changed files with 6 additions and 7 deletions

View file

@ -1,6 +1,6 @@
from typing import *
import contextlib import contextlib
import logging import logging
from typing import *
from sqlalchemy import create_engine from sqlalchemy import create_engine
from sqlalchemy.exc import ProgrammingError from sqlalchemy.exc import ProgrammingError
@ -52,7 +52,6 @@ class Alchemy:
except ProgrammingError: except ProgrammingError:
log.warning("Skipping table creation, as it is probably being created by a different process.") log.warning("Skipping table creation, as it is probably being created by a different process.")
def get(self, table: Union[str, type]) -> DeclarativeMeta: def get(self, table: Union[str, type]) -> DeclarativeMeta:
"""Get the table with a specified name or class. """Get the table with a specified name or class.

View file

@ -3,7 +3,6 @@ import io
import logging import logging
from typing import * from typing import *
import royalnet.utils as ru
from royalnet.backpack.tables.users import User from royalnet.backpack.tables.users import User
from .errors import UnsupportedError from .errors import UnsupportedError

View file

@ -1,5 +1,5 @@
from typing import TYPE_CHECKING, Union
import asyncio as aio import asyncio as aio
from typing import TYPE_CHECKING, Union
if TYPE_CHECKING: if TYPE_CHECKING:
from ..serf import Serf from ..serf import Serf

View file

@ -1,6 +1,6 @@
import abc
from typing import * from typing import *
import abc
from starlette.requests import Request from starlette.requests import Request
from starlette.responses import Response from starlette.responses import Response

View file

@ -6,8 +6,8 @@ from .royaltyping import JSON
from .sentry import init_sentry, sentry_exc, sentry_wrap, sentry_async_wrap from .sentry import init_sentry, sentry_exc, sentry_wrap, sentry_async_wrap
from .sleep_until import sleep_until from .sleep_until import sleep_until
from .strip_tabs import strip_tabs from .strip_tabs import strip_tabs
from .urluuid import to_urluuid, from_urluuid
from .taskslist import TaskList from .taskslist import TaskList
from .urluuid import to_urluuid, from_urluuid
__all__ = [ __all__ = [
"asyncify", "asyncify",

View file

@ -1,6 +1,7 @@
from typing import *
import asyncio as aio import asyncio as aio
import logging import logging
from typing import *
from .sentry import sentry_exc from .sentry import sentry_exc
log = logging.getLogger(__name__) log = logging.getLogger(__name__)