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

Typing annotations

オープン
#18 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。