Skip to content

Idea: issue an error if a '# type: ignore' comment is unused #1345

@gvanrossum

Description

@gvanrossum

Sometimes we put in # type: ignore comments because of some mypy or typeshed bug (or a missing feature). It would be nice if mypy told us when we can take those out (e.g. because the bug is fixed).

Maybe this should be a command-line flag, I can imagine it might be annoying occasionally too.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions