mypy icon indicating copy to clipboard operation
mypy copied to clipboard

Request: opt-in rule preventing duplicate error codes

Open jamesbraza opened this issue 1 year ago • 0 comments

Feature

If one specifies an error code twice, mypy allows it:

foo = 1
foo = "hi"  # type: ignore[assignment,assignment]

Pitch

Can we add an opt-in rule to have mypy disallow duplicate error codes?

jamesbraza avatar Feb 06 '24 20:02 jamesbraza