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

Typing annotations

未关闭
#18 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
294
派生
84
平均合并
3 天 7 分钟
30 天内合并 PR
3

描述

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?

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。