-
Notifications
You must be signed in to change notification settings - Fork 973
Closed
Labels
fixed in next version (main)A fix has been implemented and will appear in an upcoming versionA fix has been implemented and will appear in an upcoming version
Description
Environment data
- Language Server version: 2020.7.1
- OS and version: macOS 10.15
- Python version (& distribution if applicable, e.g. Anaconda): 3.7.7 from Homebrew
Expected behaviour
# type: ignore[code] treated same as # type: ignore (or, at least, does not generate its own error)
Actual behaviour
A line with e.g. # type: ignore[attr-defined] produces a number of errors:
Note that Type annotation not supported for this type of expression is reported even if python.analysis.typeCheckingMode is off.
Code Snippet / Additional information
Mypy uses this syntax since 0.730 (python/mypy#7239). See e.g. PyCQA/pyflakes#455 and google/pytype#485 for other tools' changes to adapt to this syntax.
rpatterson
Metadata
Metadata
Assignees
Labels
fixed in next version (main)A fix has been implemented and will appear in an upcoming versionA fix has been implemented and will appear in an upcoming version

