aws / aws/aws-lambda-python-runtime-interface-client

Typing annotations

Open
#18 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.