# type: ignore[import]
at top of file causes all error codes to be ignored
#11999
Labels
# type: ignore[import]
at top of file causes all error codes to be ignored
#11999
Windows 7, Mypy 0.931, Python 3.8.10
An
# type: ignore[import]
line at top of file causes all error codes to be ignored, not just that error code.I'm guessing this was never supposed to work, and is just a side effect of #964. However, (1) this is too confusing and easy-to-miss, (2) this feature would be very useful in my opinion. Sometimes there's just this one error that comes up lots of times in a file and I want to shush just that one without losing the other warnings.
The text was updated successfully, but these errors were encountered: