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

Ivan Levkivskyi report at bugs.python.org
Wed Jan 3 17:09:45 EST 2018


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

> There is no real conflict with PEP 526 though. PEP 526 introduces ClassVar so the type checker can be made to understand. PEP 557 allows omitting ClassVar in case you don't care about type checkers. So I think we should stick with the current spec of PEP 557 (which lets you omit ClassVar), except for this special case: ...

OK.

----------

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


More information about the Python-bugs-list mailing list