generated from amazon-archives/__template_MIT-0
-
Notifications
You must be signed in to change notification settings - Fork 467
Labels
typingStatic typing definition related issues (mypy, pyright, etc.)Static typing definition related issues (mypy, pyright, etc.)
Description
Static type checker used
pyright/pylance
AWS Lambda function runtime
3.11
Powertools for AWS Lambda (Python) version
latest
Static type checker info
# error: Argument missing for parameter "context" (reportGeneralTypeIssues)
Code snippet
@metrics.log_metrics(capture_cold_start_metric=True) # error: Argument missing for parameter "context" (reportGeneralTypeIssues)
def lambda_handler(event: dict, context: LambdaContext) -> dict:
return app.resolve(event, context)Possible Solution
This is a known issue with pyright (see pyright#3265). See also this Discord discussion.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
typingStatic typing definition related issues (mypy, pyright, etc.)Static typing definition related issues (mypy, pyright, etc.)
Type
Projects
Status
Shipped