Skip to content

Commit 2eb58b9

Browse files
🚨 auto fix by pre-commit hooks
1 parent bbf5fe1 commit 2eb58b9

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

nonebot_plugin_orm/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def orm(ctx: click.Context, config: Path, name: str, **_) -> None:
6969

7070

7171
def update_cmd_opts(
72-
f: Callable[Concatenate[AlembicConfig, _P], _R]
72+
f: Callable[Concatenate[AlembicConfig, _P], _R],
7373
) -> Callable[_P, _R]:
7474
@wraps(f)
7575
@click.pass_context

nonebot_plugin_orm/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def _setup_di(cls: type[Model]) -> None:
6363
# Check if the attribute is both a dependent and a mapped column
6464
depends_inner = None
6565
if get_origin(type_annotation) is Annotated:
66-
(type_annotation, *extra_args) = get_args(type_annotation)
66+
type_annotation, *extra_args = get_args(type_annotation)
6767
depends_inner = next(
6868
(x for x in extra_args if isinstance(x, DependsInner)), None
6969
)

nonebot_plugin_orm/templates/multidb/env.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ async def run_migrations_online() -> None:
115115
await asyncio.gather(*(conn.close() for conn in conns.values()))
116116
await asyncio.gather(*(engine.dispose() for engine in engines.values()))
117117

118+
118119
if context.is_offline_mode():
119120
run_migrations_offline()
120121
else:

0 commit comments

Comments
 (0)