aws / aws/aws-lambda-python-runtime-interface-client
Typing annotations
Open
- Dominant language
- Python
- Stars
- 294
- Forks
- 84
- Avg merge
- 3d 7m
- Merged PRs (30d)
- 3
Description
I've created typing annotations for `LambdaContext` and corresponding classes.
https://github.com/toidi/awslambdaric-stubs
It's useful in lambda handlers:
```python
import typing
if typing.TYPE_CHECKING: # pragma: no cover
from awslambdaric.lambda_context import LambdaContext
def lambda_handler(event: dict, context: "LambdaContext") -> typing.Any:
print(context.memory_limit_in_mb)
...
```
Perhaps, it would be better to move typing definition in this repository?
Contributor guide
Assessment
This issue has not been assessed yet.