Skip to content

(🐞) unused-ignore doesn't activate on disabled error codes #16537

Closed as duplicate of#11059
@KotlinIsland

Description

@KotlinIsland
# mypy: enable-error-code=unused-ignore, disable-error-code=operator
1  + ""  # type: ignore
# no error reported

The expected output here would be:

error: Unused "type: ignore" comment  [unused-ignore]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrongtopic-type-ignore# type: ignore comments

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions