KEMBAR78
warn-unused-ignores does not respect follow-imports=silent · Issue #3949 · python/mypy · GitHub
Skip to content

warn-unused-ignores does not respect follow-imports=silent #3949

@carljm

Description

@carljm
$ cat imported.py
a: int = 'foo'

b: int = 3  # type: ignore

$ cat main.py 
import imported

$ mypy --warn-unused-ignores --follow-imports=silent main.py
imported.py:3: note: unused 'type: ignore' comment

follow-imports=silent correctly silences the type error on line 1 of imported.py, but fails to silence the "unused type: ignore comment" note.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrong

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions