Typing for `BaseLambdaEvent.context` should be `LambdaContext` instead of dict
Open
enhancement
- Dominant language
- Python
- Stars
- 11.1k
- Forks
- 1k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 2
Description
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 of `dict`.
Example docs:
https://aws.github.io/chalice/api.html?highlight=snsevent#SQSEvent.context
Contributor guide
Research direction
Start at chalice/app.pyi lines 486-490 and compare the annotation with chalice.local.LambdaContext and the linked API documentation. Confirm the existing implementation and docs use LambdaContext, then update the type declaration so BaseLambdaEvent.context matches them.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, python
- Domain
- cloud, developer-experience
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100