Message 408775 - Python tracker
Thanks, test added. I also updated the title.
Code updated to treat any __repr__s as affecting the display of the member value instead of the member itself (i.e. the "<...: %r>" portion). if a user actually wants to change the member repr they can assign it when creating the Enum:
class Entries(Foo, Enum):
ENTRY = 1
__repr__ = Foo.__repr__
assert repr(Entries.ENTRY1) == 'Entries(a=1)'