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 摘要。