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
Add support for Python 3.8 #675
Comments
Maintainers of Python projects are strongly encouraged to test with Python's beta and RC releases. Many projects use astroid/pylint as part of their CI; they can't fully start testing without 3.8-compatible linters. |
It looks like the actual parsing of the python code is delegated to |
Here is another 3.8-related failure mode: astroid reports
The README says that it will not support Python 3.8+. Instead (I think), typed_ast has been merged back into |
Seeing as I tried just replacing the one Before:
After:
While I lack any further knowledge of astroid's inner workings, this certainly looks promising to me :-) It seems that this change fixes both positional-only arguments and debug f-strings. |
@MatthijsBlom Thanks for the test! We only use |
@PCManticore I use a fresh Python 3.8.0b2 on Windows. I ran the tests again, against commit 34bd444. Here are the complete logs: before.txt, after.txt. |
@MatthijsBlom FWIW, I cannot reproduce these errors using the latest 3.8 beta on Mac. Not sure if these test failures are specific to Windows as I don't have access to this OS, and AppVeyor doesn't have support for Python 3.8 just yet. Is it possible to see if the latest |
@PCManticore Did you mean without changes to |
@MatthijsBlom Yes that's right. Thanks for doing that test! 28fc86f should fix that test failure for you. |
@PCManticore It does. No failures remaining now on my end. |
Thank you for testing it @MatthijsBlom I think we can close this now. My plan is to release a new version in the next two weeks, but I'll have a dev release before then. |
We do have a dozen of tests currently failing on Python 3.8. We should add support for it before the official launch in autumn.
The text was updated successfully, but these errors were encountered: