Skip to content

Commit 88ef500

Browse files
refactor(tracer): fix capture_lambda_handler return type annotation (#6197)
Co-authored-by: Leandro Damascena <[email protected]>
1 parent ba50be5 commit 88ef500

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: aws_lambda_powertools/tracing/tracer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def capture_lambda_handler(
260260
lambda_handler: Callable[[T, Any], Any] | Callable[[T, Any, Any], Any] | None = None,
261261
capture_response: bool | None = None,
262262
capture_error: bool | None = None,
263-
):
263+
) -> Callable[..., Any]:
264264
"""Decorator to create subsegment for lambda handlers
265265
266266
As Lambda follows (event, context) signature we can remove some of the boilerplate

0 commit comments

Comments
 (0)