This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.smith
Recipients eric.smith, ethan.furman
Date 2021-12-17.07:57:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1639727820.68.0.974855238275.issue46108@roundup.psfhosted.org>
In-reply-to
Content
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 Entries(Foo, Enum):
    ENTRY1 = Foo(1)

repr(Entries.ENTRY1) != '<Entries.ENTRY1: Foo(a=1)>'
History
Date User Action Args
2021-12-17 07:57:00eric.smithsetrecipients: + eric.smith, ethan.furman
2021-12-17 07:57:00eric.smithsetmessageid: <1639727820.68.0.974855238275.issue46108@roundup.psfhosted.org>
2021-12-17 07:57:00eric.smithlinkissue46108 messages
2021-12-17 07:57:00eric.smithcreate