aws / aws/aws-lambda-python-runtime-interface-client
Typing annotations
Offen
- Vorherrschende Sprache
- Python
- Sterne
- 294
- Forks
- 84
- Ø Merge
- 3 T. 7 Min.
- Gemergte PRs (30 T.)
- 3
Beschreibung
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?
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.