-
Notifications
You must be signed in to change notification settings - Fork 36
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
Python AST deprecations #195
Comments
Thanks for reporting! Unfortunately I couldn't find a solution to suppress these warnings either, they are no issue for users until they start using python3.14, so if I could I'd just supress warnings until then. |
This currently blocks akaihola/darker#774 from enabling CI tests with Python 3.14-dev. |
Ok python 3.14 is on the horizon now, so this gains in importance. PR would be welcome. |
I'll try and come up with a PR.
Could you expand on that? In ast — Abstract Syntax Trees — Python 3.13.1 documentation I see:
And indeed, at least on Python 3.12: $ python -c 'import ast; print(ast.Str())'
<string>:1: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
<ast.Constant object at 0x7f1bdb12df50> So what would be the case in which changing |
It will also be good if it comes as series of PRs, you can leave complicated cases (if any) for later. |
Also Tests then need to be fixed to expect double quotes instead of single quotes. |
...and support for Python 3.8 (end-of-life currently) needs to be dropped. |
@ikamensh is it ok if the behavior of Flynt changes with regard to single and double quotes when moving from |
Can you give some examples? The prob is if it gives big change list on projects already having flynt as linter. You can see projects in "used by" and run new version on their code. If it changes every other file, it can be quite annoying. |
I can imagine behavior change via minor version bump, if new behavior is sensible |
In my CI build, I'm getting these deprecation warnings from Python 3.12:
The text was updated successfully, but these errors were encountered: