-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
Closed
Labels
type-featureA feature request or enhancementA feature request or enhancement
Description
Bug report
Bug description:
import dataclasses
@dataclasses.dataclass
class NotFrozen:
pass
@dataclasses.dataclass(frozen=True)
class Frozen:
pass
@dataclasses.dataclass(frozen=True)
class Child(NotFrozen, Frozen):
pass
The dataclass inheritance hierarchy is supposed to require all classes to be either frozen or non frozen, this works properly for checking that an unfrozen class does not inherit from any frozen classes, but it allows frozen classes to inherit from unfrozen ones as long as there's at least one frozen class in the MI
CPython versions tested on:
3.10
Operating systems tested on:
Windows
Linked PRs
eltoder
Metadata
Metadata
Assignees
Labels
type-featureA feature request or enhancementA feature request or enhancement