Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DetachHead opened this issue Jun 19, 2023 · 1 comment
Open

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

DetachHead opened this issue Jun 19, 2023 · 1 comment
Labels
bug mypy got something wrong

Comments

@DetachHead
Copy link
Contributor

DetachHead commented Jun 19, 2023

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 microsoft/vscode-mypy#35 (comment)

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

@karthiknadig
Copy link

It also doesn't include an error code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mypy got something wrong
Projects
None yet
Development

No branches or pull requests

2 participants