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

1from collections.abc import Callable 

2from typing import Any, cast 

3 

4import boto3 

5from botocore.client import BaseClient 

6 

7default_client: BaseClient = boto3.client("sqs") 

8 

9class LambdaFunction: 

10 def __init__(self) -> None: 

11 pass 

12 

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) 

16 

17 return f 

18 

19 

20@LambdaFunction() 

21def test(x: int, *, y: bool) -> int: 

22 ... 

23 

24 

25data = test(1, y=True) + 2