Skip to content

Commit fd854d1

Browse files
authored
Merge pull request #32 from python-ellar/code_style_fix
fix: code style
2 parents 942fb99 + 4051b54 commit fd854d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ellar_sql/pagination/decorator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import uuid
55

66
import ellar.common as ecm
7+
import ellar.core as ec
78
import sqlalchemy as sa
89
from ellar.common import set_metadata
910
from ellar.common.constants import EXTRA_ROUTE_ARGS_KEY, RESPONSE_OVERRIDE_KEY
@@ -107,7 +108,7 @@ def _get_route_function_wrapper(
107108
# use unique_id to make the kwargs difficult to collide with any route function parameter
108109
execution_context = ecm.params.ExtraEndpointArg(
109110
name=f"context_{unique_id[:-6]}",
110-
annotation=ecm.Inject[ecm.IExecutionContext],
111+
annotation=ecm.Inject[ec.ExecutionContext],
111112
)
112113

113114
set_metadata(EXTRA_ROUTE_ARGS_KEY, [_paginate_args, execution_context])(

0 commit comments

Comments
 (0)