Message374654
The problem appears to be occurring when the base class is subscripted, not when it's inherited. I can reproduce this issue on Python 3.6.10 by just evaluating Base[T].
'del Base.__slots__' after Base is constructed seems to work around the issue, and allow Base[T] to be evaluated. Of course, Base is still slotted at this point, since __slots__ are consulted only when initially building the class. |
|
Date |
User |
Action |
Args |
2020-08-01 05:07:32 | Joshua Oreman | set | recipients:
+ Joshua Oreman, jab |
2020-08-01 05:07:32 | Joshua Oreman | set | messageid: <1596258452.88.0.344170246882.issue41451@roundup.psfhosted.org> |
2020-08-01 05:07:32 | Joshua Oreman | link | issue41451 messages |
2020-08-01 05:07:32 | Joshua Oreman | create | |
|