
Thanks Erik! I have a few small pieces of feedback: - The runtime implementation is currently an identity function. I'd prefer if it sets some flag on the decorated object, similar to what I'm proposing in https://github.com/python/cpython/pull/30530 for @final. I'd suggest setting `cls.__dataclass_transform__ = {"eq_default": True, ...}` on the decorated object. - dataclasses now supports the KW_ONLY marker to make only some fields kw-only ( https://docs.python.org/3/library/dataclasses.html#dataclasses.KW_ONLY). Should this be added to the spec? El lun, 13 dic 2021 a las 13:38, Erik De Bonte via Typing-sig (< typing-sig@python.org>) escribió:
I’ve created a draft PEP for the “Dataclass Transforms” concept that Eric Traut presented at the December 1st Typing SIG meetup. Feedback is welcome!
https://github.com/debonte/peps/blob/dataclass_transforms/pep-9999.rst
Thanks,
Erik _______________________________________________ Typing-sig mailing list -- typing-sig@python.org To unsubscribe send an email to typing-sig-leave@python.org https://mail.python.org/mailman3/lists/typing-sig.python.org/ Member address: jelle.zijlstra@gmail.com