Message314091
My point is that the problem is that after:
@dataclass
class Base:
__slots__ = ('x',)
x: Any
Base.x has a value (it's the member_descriptor for x). That's what's causing the problem that when adding a field to the derived class, it thinks you're adding a field without a default value after one that has a default value.
I agree that I could detect this specific case and allow it. My comment about the error message was inaccurate. |
|
| Date |
User |
Action |
Args |
| 2018-03-19 11:32:31 | eric.smith | set | recipients:
+ eric.smith, stachel |
| 2018-03-19 11:32:31 | eric.smith | set | messageid: <1521459151.79.0.467229070634.issue33100@psf.upfronthosting.co.za> |
| 2018-03-19 11:32:31 | eric.smith | link | issue33100 messages |
| 2018-03-19 11:32:31 | eric.smith | create | |
|