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 還沒有評估資料。