-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
v6.1.0 breaks Pylance highlighting and produces errors #5186
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
Comments
I'm experiencing this too. I believe everything under |
1. Restore `TYPE_CHECKING` code clauses in `codegen/__init__.py` and `codegen/utils.py` that were removed in #4978. 1. Update `requires-optional.txt` to specify `black==25.1.0` to be consistent with version specified in `pyproject.toml`. 1. Change required Python version in `pyproject.toml` to 3.9 because desired version of `black` does not work with Python 3.8. closes #5186
@IlanCosman @kszlim Thank you for reporting. We've identified the issue and are working on a fix. We're able to reproduce the broken highlighting (see screenshot below) but can't reproduce the red underline / |
I'm seeing something similar to what you're seeing on vscode with pylance. |
Code:
Expected highlighting / lack of errors (from v6.0.1):
Broken highlight with errors (from v6.1.0):
The error is:
The code of course still runs just fine. I'm using the latest version of VSCode and Pylance at time of writing.
The text was updated successfully, but these errors were encountered: