-
Notifications
You must be signed in to change notification settings - Fork 443
Closed
Labels
tech-debtTechnical Debt tasksTechnical Debt tasks
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
Metadata
Metadata
Assignees
Labels
tech-debtTechnical Debt tasksTechnical Debt tasks