You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Enum] Enhance repr() when inheriting from dataclass #94943
In 3.10 and prior, a combined dataclass/enum such as
from dataclasses import dataclass
from enum import Enum
@dataclass(frozen=True)
class CreatureDataMixin:
size: str
legs: int
class Creature(CreatureDataMixin, Enum):
BEETLE = ('small', 6)
DOG = ('medium', 4)
Activity
[-]Enhance dataclass repr() when combined with Enum[/-][+][Enum] Enhance repr() when decorated with dataclass[/+][-][Enum] Enhance repr() when decorated with dataclass[/-][+][Enum] Enhance repr() when inheriting from dataclass[/+]gh-94943: [Enum] improve repr() when inheriting from a dataclass (GH-…