[issue32505] dataclasses: make field() with no annotation an error
Ivan Levkivskyi
report at bugs.python.org
Wed Mar 21 19:43:42 EDT 2018
Ivan Levkivskyi <levkivskyi at gmail.com> added the comment:
Some part of the discussion is in https://bugs.python.org/issue32428
I still think it is important to flag things like this as an error:
@dataclass
class C:
x = field()
This is a big bug magnet. Especially taking into account that attrs behave in the opposite way in this case.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32505>
_______________________________________
More information about the Python-bugs-list
mailing list