-
Notifications
You must be signed in to change notification settings - Fork 421
Using event_source
decorator with tracer.capture_lambda_handler
decorator
#4795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for opening your first issue here! We'll come back to you as soon as we can. |
Hello @aminalaee! I don't think that's too broad of a type. By definition |
|
Static type checker used
pyright/pylance
AWS Lambda function runtime
3.12
Powertools for AWS Lambda (Python) version
latest
Static type checker info
Code snippet
Possible Solution
When using the
tracer.capture_lambda_handler
decorator withevent_source
decorator Pylance is complaining about type mismatch. Checking thelogger.inject_lambda_context
I think we could useAnyCallableT
.Does that make sense to create a PR for this? Or is too broad of a type? I will create a small PR anyway.
The text was updated successfully, but these errors were encountered: