3 ms·
Yeah, that’s true. Dataclass support is severely lacking. Is there a pep on the horizon for this?
by sillysaurusx 5y ago
Yeah, that’s true. Dataclass support is severely lacking. Is there a pep on the horizon for this?
- zzzeek 5y agoim not really sure (highly doubtful, much simpler ideas like being able to make your own Tuple subclass are still not ready for primetime) but this would be a pretty tough pep to allow the general "dataclass" concept to be available to other libraries that want to use the same pattern, but not use dataclasses.
- zzzeek 5y agoUpdate, see sibling reply. The pylance folks are killing it.
- zem 5y agoyes, check out https://github.com/microsoft/pyright/blob/main/specs/dataclass_transforms.md https://github.com/microsoft/pyright/blob/main/specs/datacla...
- zzzeek 5y agoWOW