Closed
Description
Static type checker used
pyright/pylance
AWS Lambda function runtime
3.12
Powertools for AWS Lambda (Python) version
latest
Static type checker info
Latest Pylance, latest VS Code, type checking mode strict.
Untyped function decorator obscures type of function
Screenshot:

Code snippet
from aws_lambda_powertools.event_handler import APIGatewayRestResolver
app = APIGatewayRestResolver()
@app.post("/v1/demo")
def demo() -> str:
return "demo"
Possible Solution
return Callable[..., T]
or something like that
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Shipped