mypy
mypy copied to clipboard
Request: opt-in rule preventing duplicate error codes
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?