False positive invalid-enum-extension
for Enum parent class with annotations
#8830
Labels
Milestone
Bug description
Pylint incorrectly flags an Enum inherited from a parent Enum which has annotations. This is useful when overriding
__new__
or__init__
on the parent Enum to add extra data to the Enum members while also keeping the codebase typed. Example:example.py
Configuration
No response
Command used
Pylint output
Expected behavior
No output
Pylint version
OS / Environment
macOS Ventura 13.2.1
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: