Eric V. Smith added the comment:
I know you know this, but here's a version without dataclasses, in case you
want to add a test for this, too.
from enum import Enum
class Foo:
def __init__(self, a):
self.a = a
def __repr__(self):
return f'Foo(a={self.a!r})'
class Ent
New submission from Ethan Furman :
from dataclasses import dataclass
from enum import Enum
@dataclass
class Foo:
a: int = 0
class Entries(Foo, Enum):
ENTRY1 = Foo(1)
repr(Entries.ENTRY1) != ''
--
assignee: ethan.furman
messages: 408748
nosy: ethan.furman
priority: normal
seve