You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect only the first error type to be ignored, but instead mypy ignores both errors (which is what you would expect to happen if the first line is #type: ignore.
The text was updated successfully, but these errors were encountered:
I think this is a feature request, not a bug
Consider the following code (Python 3.7.4, mypy 0.770):
Running
mypy --show-error-codes
gives two errors (as expected):If I add a global ignore statement to the top of the file in the following manner:
I would expect only the first error type to be ignored, but instead mypy ignores both errors (which is what you would expect to happen if the first line is
#type: ignore
.The text was updated successfully, but these errors were encountered: