PyCQA / eradicate

Removes commented-out code from Python files

Home Page:https://pypi.python.org/pypi/eradicate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

False positive for `# pyright: reportSomeError=...`

AdityaGudimella opened this issue · comments

PyRight is a static type checker similar to mypy and pyre from Microsoft.
Errors in PyRight can be ignored on a per-line basis, similar to mypy, using the comment style

# pyright: reportErrorName=[false|true].

either at the end of the line causing the error or on the line above it.

These are falsely being flagged as commented out code by eradicate. It would be nice if this can be fixed.

I'd be happy to put up a PR for this with some guidance.