-
Notifications
You must be signed in to change notification settings - Fork 419
Bug: API Gateway - invalid escape sequence '\[' #2980
New issue
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
Comments
Thanks for opening your first issue here! We'll come back to you as soon as we can. |
Looking at this now |
Thank you so much for the very very clear explanation of the problem, and the steps to reproduce! I'm opening a PR in a few minutes. |
@nejcskofic I've opened a PR to fix this, can you take a look to see if it makes sense? |
|
@rubenfonseca Looks good, thank you for the quick response! |
This is now released under 2.23.1 version! |
Expected Behaviour
When importing from
aws_lambda_powertools.event_handler.api_gateway
there should be no warning raised.Current Behaviour
Deprecation warning is raised on import on api_gateway.pyL46:
If pytest is run with warnings as errors, Syntax error is raised instead and module loading is terminated.
Code snippet
Possible Solution
Remove
# noqa: W605
and prefix pattern with raw string modifier. I haven't checked if this is an issue elsewhere in the codebase.Steps to Reproduce
__pycache__
fromaws_lambda_powertools/event_handler
(once code is bytecompiled error is no longer triggered)Powertools for AWS Lambda (Python) version
latest
AWS Lambda function runtime
3.10
Packaging format used
PyPi
Debugging logs
No response
The text was updated successfully, but these errors were encountered: