[mypy]
allow_redefinition = true
disable_error_code =
override,
var-annotated
mypy_path = types/
plugins =
mypy_django_plugin.main
numpy.typing.mypy_plugin,
mypy_drf_plugin.main
pretty = true
show_error_codes = true
show_error_context = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_unreachable = true
Bug Report
Mypy incorrectly identifies an enum as final. This appears related to / caused by #11247.
To Reproduce
__new__methodExpected Behavior
Mypy would not complain about the enum.
Actual Behavior
error: Cannot inherit from final class "TestEnum" [misc]Your Environment
mypy.ini(and other config files):