mypy icon indicating copy to clipboard operation
mypy copied to clipboard

`warn-unused-ignores` errors don't have a column number

Open DetachHead opened this issue 2 years ago • 1 comments

1 # type:ignore[misc]
foo: int = ""
main.py:1: error: Unused "type: ignore" comment
main.py:2:12: error: Incompatible types in assignment (expression has type "str", variable has type "int")  [assignment]

playground

this is causing the new vscode mypy extension to not display unused ignore errors, see https://github.com/microsoft/vscode-mypy/issues/35#issuecomment-1595030440

apparently that's not the only error that doesn't have column numbers, but i'm not sure what other ones there are

DetachHead avatar Jun 19 '23 00:06 DetachHead

It also doesn't include an error code.

karthiknadig avatar Jun 19 '23 17:06 karthiknadig