You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 aDict
as its first argument.Example: #1583
Which area does this relate to?
Logger
Solution
No response
Acknowledgment
The text was updated successfully, but these errors were encountered: