We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ApiGatewayResolver.resolve
pyright/pylance
3.12
latest
The ApiGatewayResolver.resolve function definition provides type annotations for the returning value, but not for the arguments:
ApiGatewayResolver.resolve
def resolve(self, event, context) -> dict[str, Any]:
Parameters are described inside the function in the docstring, but not incorporated into the function definition:
Parameters ---------- event: dict[str, Any] Event context: LambdaContext Lambda context Returns ------- dict Returns the dict response """
Link to the line of code: https://github.com/aws-powertools/powertools-lambda-python/blob/develop/aws_lambda_powertools/event_handler/api_gateway.py#L2002
def resolve( event: Unknown, context: Unknown ) -> dict[str, Any]
Add the annotations to the function definition in addition to adding them into the doc string.
The text was updated successfully, but these errors were encountered:
resolve
Addressed in my PR #5602
Sorry, something went wrong.
This issue is now closed. Please be mindful that future comments are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Successfully merging a pull request may close this issue.
Static type checker used
pyright/pylance
AWS Lambda function runtime
3.12
Powertools for AWS Lambda (Python) version
latest
Static type checker info
The
ApiGatewayResolver.resolve
function definition provides type annotations for the returning value, but not for the arguments:Parameters are described inside the function in the docstring, but not incorporated into the function definition:
Link to the line of code:
https://github.com/aws-powertools/powertools-lambda-python/blob/develop/aws_lambda_powertools/event_handler/api_gateway.py#L2002
Code snippet
Possible Solution
Add the annotations to the function definition in addition to adding them into the doc string.
The text was updated successfully, but these errors were encountered: