Coverage for src/extratools_cloud/aws/lambda.py: 0%
16 statements
« prev ^ index » next coverage.py v7.9.1, created at 2025-06-20 04:03 -0700
« prev ^ index » next coverage.py v7.9.1, created at 2025-06-20 04:03 -0700
1from collections.abc import Callable
2from typing import Any, cast
4import boto3
5from botocore.client import BaseClient
7default_client: BaseClient = boto3.client("sqs")
9class LambdaFunction:
10 def __init__(self) -> None:
11 pass
13 def __call__[T, **P](self, f: Callable[P, T]) -> Callable[P, T]:
14 def wrapper(*args: P.args, **kwargs: P.kwargs) -> T:
15 return cast("T", 10)
17 return f
20@LambdaFunction()
21def test(x: int, *, y: bool) -> int:
22 ...
25data = test(1, y=True) + 2