microsoft / microsoft/vscode-mypy
Feature request: Offer "# type: ignore" quick fix for line and entire file
- Dominant language
- Python
- Stars
- 150
- Forks
- 39
- Avg merge
- 21h 45m
- Merged PRs (30d)
- 8
Description
I would like to request for the extension to offer a Quick Fix to suppress an error by adding:
- `# type: ignore[error-code]` at the end of the line
- or `# mypy: disable-error-code="error-code"` to the top of the file
Similar to how ESLint does it

And better than pylance does it by also including the error code:

Contributor guide
Research direction
No files, tests, or implementation entry points are named. Start by locating the extension's existing Quick Fix handling and how mypy diagnostics expose error codes. Done means offering line and whole-file suppressions with the reported error code, matching the requested comment forms.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, vscode
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100