Closed
Description
We use slotscheck
in the CI for Piccolo and sister projects.
For Python 3.12, they changed Generic
- it no longer defines __slots__
.
This means code like this now fails slotscheck:
I know there's a new syntax for defining generics in Python 3.12, but as Piccolo supports Python 3.8 and above, it's harder to implement.
Any ideas how we can fix this? Maybe a special case for Generic
in slotscheck (I haven't checked whether using Generic
does invalidate the slots in child classes, but I assume not).
Thanks!
Metadata
Assignees
Labels
No labels