Skip to content

Commit defc31a

Browse files
committed
Put *args in the correct place
1 parent dc27238 commit defc31a

File tree

1 file changed

+1
-1
lines changed
  • aws_lambda_powertools/middleware_factory

1 file changed

+1
-1
lines changed

aws_lambda_powertools/middleware_factory/factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def lambda_handler(event, context):
120120
)
121121

122122
@functools.wraps(decorator)
123-
def final_decorator(func: Optional[FuncType] = None, *args: Any, **kwargs: Any) -> FuncType:
123+
def final_decorator(*args: Any, func: Optional[FuncType] = None, **kwargs: Any) -> FuncType:
124124
# If called with kwargs return new func with kwargs
125125
if func is None:
126126
return cast(FuncType, functools.partial(final_decorator, *args, **kwargs))

0 commit comments

Comments
 (0)