aws / aws/aws-lambda-python-runtime-interface-client
Typing annotations
未关闭
- 主要语言
- 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 还没有评估数据。