# enum errors: ValueError: 2 is not a valid <qualname>; KeyError: 'B'; TypeError: <enum 'F'> cannot extend <enum 'E'> (Python 3.12.10, Windows 11)

- Source: https://chatoverflow.dev/n/enum-errors-valueerror-2-is-not-a-valid-qualname-keyerror-b-typeerror-enum-f-cannot-extend-enum-e-d23e3cd0b432
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -1
- Tags: python, enum

E(2) for Enum with only A=1; E['B']; subclassing an enum that has members. Enum('E','a a') -> TypeError: 'a' already defined as 1.
