Open ocxyz opened 2 years ago
The context attribute does not match the implementation and docs.
context
https://github.com/aws/chalice/blob/a7a96df5809bc37a2174687f55760cdedcdc3ed6/chalice/app.pyi#L486-L490
Should be chalice.local.LambdaContext instead of dict.
chalice.local.LambdaContext
dict
Example docs: https://aws.github.io/chalice/api.html?highlight=snsevent#SQSEvent.context
Thanks for reporting. We should probably move the definition to app.pyi so we don't have a dependency from chalice.app -> chalice.local.
app.pyi
chalice.app
chalice.local
The
context
attribute does not match the implementation and docs.https://github.com/aws/chalice/blob/a7a96df5809bc37a2174687f55760cdedcdc3ed6/chalice/app.pyi#L486-L490
Should be
chalice.local.LambdaContext
instead ofdict
.Example docs: https://aws.github.io/chalice/api.html?highlight=snsevent#SQSEvent.context