Sagemaker core is unimportable in warnings as error mode due to SyntaxError: invalid escape sequence: '\|'
#244
Labels
bug
Something isn't working
Describe the bug
A clear and concise description of what the bug is.
Sagemaker core cannot be imported when running python in warnings as error mode. This comes up a lot in test suites when running pytest in warnings as error mode.
I believe most of this is codegen, so likely will need a fix to the generator to remove invalid escape sequences. Potentially a CI check could be added down the road to ensure the files are importable. There shouldn't be warnings on import either.
To reproduce
A clear, step-by-step set of instructions to reproduce the bug.
The provided code need to be complete and runnable, if additional data is needed, please include them in the issue.
There's multiple files with this issue. I'm not sure how these are passing tests.
Expected behavior
A clear and concise description of what you expected to happen.
No errors nor warnings on import.
Screenshots or logs
If applicable, add screenshots or logs to help explain your problem.
Bug information
A description of your system. Please provide:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: