Mailing List Archive

RFC on PEP 681: Data Class Transforms
PEP 681<https://www.python.org/dev/peps/pep-0681/> improves type checker support for libraries with dataclass-like behaviors by introducing a way to map the behaviors of decorators and classes in those libraries to the behaviors of stdlib dataclass.

The PEP will not affect CPython directly except for the addition of the dataclass_transform decorator in typing.py. The decorator is currently in typing_extensions.

The canonical discussion thread is on Typing SIG<https://mail.python.org/archives/list/typing-sig@python.org/thread/EAALIHA3XEDFDNG2NRXTI3ERFPAD65Z4/>. Please send any comments there.

Any feedback would be appreciated!

Thanks,
Erik