3 ms·
When you write it that way it makes me wonder why there isn't a DataClass type
by metalliqaz 9y ago
When you write it that way it makes me wonder why there isn't a DataClass type
- joshuamorton 9y agoThe short answer is that the only way to do what dataclasses do as a base class is via python metaclasses, and you can only have one metaclass. So this way, you can dataclassify something that inherits from a metaclass.