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
This sounds like there's some mismatch in line number. To fix it, you need to put the type ignore on the line that the error indicates.
But this also suggests a bug in where we raise the error. I'm just guessing, but maybe we produce an error on the def line when we should do it on the line for a specific parameter.
file.py:17: error: Explicit "Any" is not allowed [misc]
file.py:22: error: unused 'type: ignore' comment
Actually, I tried no-explicit-any and no-any-explicit as error code, but neither worked.
What is the behavior/output you expect?
No errors.
What are the versions of mypy and Python you are using?
Python 3.8.2 mypy 0.761
What are the mypy flags you are using? (For example --strict-optional)
In setup.cfg:
Related issue: #7239
The text was updated successfully, but these errors were encountered: