Commit 67bbd4d
committed
fix(typing): accept Mapping type in resolve() for event parameter
Change resolve() event parameter type hint from dict[str, Any] to
Mapping[str, Any] to allow Powertools event data classes (e.g.,
LambdaFunctionUrlEvent) to be passed without type errors.
This is backwards compatible since dict is a subtype of Mapping.
Closes #78641 parent 896c0ee commit 67bbd4d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2461 | 2461 | | |
2462 | 2462 | | |
2463 | 2463 | | |
2464 | | - | |
| 2464 | + | |
2465 | 2465 | | |
2466 | 2466 | | |
2467 | 2467 | | |
| |||
0 commit comments