Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
Bug description:
importdataclasses@dataclasses.dataclassclassNotFrozen:pass@dataclasses.dataclass(frozen=True)classFrozen:pass@dataclasses.dataclass(frozen=True)classChild(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