Closed
Description
Summary
With typing_extension
being now a runtime dependency, we can more accurately type decorators to allow signature change.
Quick blog on UX: https://sobolevn.me/2021/12/paramspec-guide
Why is this needed?
Customers using Pydantic or Event Source Data Class decorators to override Event type fail Mypy when using with logger.inject_lambda_context
decorator, since it expects a Dict
as its first argument.
Example: #1583
Which area does this relate to?
Logger
Solution
No response
Acknowledgment
- This request meets Lambda Powertools Tenets
- Should this be considered in other Lambda Powertools languages? i.e. Java, TypeScript