-
Notifications
You must be signed in to change notification settings - Fork 470
Bug: Type annotated resolvers not found by OpenAPI merge #8073
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workingtriagePending triage from maintainersPending triage from maintainers
Description
Expected Behaviour
OpenAPI merge should find resolvers that are type annotated.
Current Behaviour
When you have the following type annotated resolver (code snippet), OpenAPI merge doesn't find it because it only looks for ast.Assign, and not ast.AnnAssign.
Code snippet
app: APIGatewayRestResolver = APIGatewayRestResolver(enable_validation=True)Possible Solution
See PR I've created shortly after this.
Steps to Reproduce
Try to run test_file_has_resolver_found with an annotated resolver.
Powertools for AWS Lambda (Python) version
latest
AWS Lambda function runtime
3.14
Packaging format used
PyPi
Debugging logs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingtriagePending triage from maintainersPending triage from maintainers
Type
Projects
Status
Triage