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 TenetsShould this be considered in other Lambda Powertools languages? i.e. Java, TypeScript
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
github-actions commentedon Nov 14, 2022
This issue is now closed. Please be mindful that future comments are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.