mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Reformat code
This commit is contained in:
parent
ec7da50412
commit
9a529a572d
6 changed files with 6 additions and 7 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import abc
|
||||
from typing import *
|
||||
|
||||
import abc
|
||||
from starlette.requests import Request
|
||||
from starlette.responses import Response
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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__)
|
||||
|
|
Loading…
Reference in a new issue