[issue42269] Add ability to set __slots__ in dataclasses

Josh Rosenberg report at bugs.python.org
Wed Nov 11 01:32:38 EST 2020


Josh Rosenberg <shadowranger+python at gmail.com> added the comment:

Is the plan to allow an argument to auto-generate __slots__, or would this require repeating the names once in __slots__, and once for annotations and the like?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42269>
_______________________________________


More information about the Python-bugs-list mailing list