aws / aws/aws-lambda-python-runtime-interface-client
Typing annotations
Ouverte
- Langage dominant
- Python
- Étoiles
- 294
- Forks
- 84
- Merge moyen
- 3 j 7 min
- PR mergées (30 j)
- 3
Description
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?
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.