-
Notifications
You must be signed in to change notification settings - Fork 99
fix: Python SyntaxWarning: invalid escape sequence
warnings
#459
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
base: master
Are you sure you want to change the base?
Conversation
SyntaxWarning: invalid escape sequence
warnings
Hi, thank your for your PR! This fix makes sense: But unfortunately others don't make, because all client.py files are autogenerated by fern: |
@makseq Got it. Should I revert the other changes then? Is there a way to fix this in the |
@makseq I'm following up this. You approved this PR already 2 weeks ago, and I still don't exactly understand the path towards fixing the warnings 🙏 |
@benglewis Some code is generated from the OpenAPI schema using the Fern library. You can identify these files by 1st line: But I don't see it's was ever claimed: https://github.com/search?q=repo%3Afern-api%2Ffern+%27%22%22%22%27+path%3A%2F%5Egenerators%5C%2Fpython%5C%2Fsrc%5C%2Ffern_python%5C%2F%2F&type=code |
Please update your change to include only files that do not start with the line |
I have reverted the Python files changes.
It looks like the second \& issue is actually from the docs in
I suggest that I change the docs instead and let the Fern part be updated automatically? |
OK... so I just realized that this indeed actually look to be coming from https://github.com/HumanSignal/label-studio-client-generator - they may be bugs in Fern, I am not sure, but in the meantime, I have tried to implement workarounds in that repository and opened a Pull Request there too, in order to fix these issues |
@farioas Let me know if you need any changes |
@farioas I also believe that the Gitleaks GitHub Actions workflow is failing due to me not being a developer in the |
This package produces the following Python warnings:
The following PR fixes those Python warnings.
It was also raised in #453 and this fixes #453 too as a result