aws / aws/aws-lambda-python-runtime-interface-client
Typing annotations
オープン
- 主要言語
- Python
- スター
- 294
- フォーク
- 84
- 平均マージ
- 3日 7分
- マージ済み PR(30日)
- 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 はまだ評価されていません。