[issue32428] dataclasses: make it an error to have initialized non-fields in a dataclass

Ivan Levkivskyi report at bugs.python.org
Tue Dec 26 18:24:43 EST 2017


Ivan Levkivskyi <levkivskyi at gmail.com> added the comment:

A possible question here is should we give an error for any non-callable name in `__dict__` which is not in `__annotations__` or only for `Field`s?

After some thinking I am actually leaning towards the first option.

----------
nosy: +gvanrossum, levkivskyi

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


More information about the Python-bugs-list mailing list