--warn-unused-ignores in non-checked branches #5940
Labels
bug
mypy got something wrong
priority-1-normal
topic-type-ignore
# type: ignore comments
topic-usability
Consider the following mixed Python 2 and 3 stub:
Using mypy 0.641 and Python 3.6.7 when running this with
mypy --warn-unused-ignores
mypy wll complain:As expected it will not complain when running in
--py2
mode. I believe mypy should not complain about ignores in branches that are not checked.See also #2961, which is more generic.
The text was updated successfully, but these errors were encountered: