-
Notifications
You must be signed in to change notification settings - Fork 290
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
:= gets turned into : =, which is not correct syntax #507
Comments
The release version of pycodestyle is not yet compatible with pep-572. So the workaround is to install pycodestyle master.
Thanks |
autopep8==1.5 still doesn't work ? |
pycodestyle 2.6.0 released https://github.com/PyCQA/pycodestyle/releases And it works. |
Just want to add a note in case anyone else runs into the same issue I did. I use pyenv to manage multiple python versions on my dev machines and was running into this issue on a newer instance. Turns out that the pip install of autopep8 hardcodes the python path in the shebang part of the script.
So while the script (and pycodestyle were at the latest version) autopep8 was installed using the python 3.6 env on the box and didn't pick up the setting 3.9.1 version that was setup later. As such it was still correcting the syntax per 3.6. Reinstalling while being sure the python 3.9 env was coming up first in the path, via pyenv, fixed the issue.
|
Python Code
Your Environment
The text was updated successfully, but these errors were encountered: