[New-bugs-announce] [issue32505] dataclasses: make field() with no annotation an error

Eric V. Smith report at bugs.python.org
Sat Jan 6 17:21:04 EST 2018


New submission from Eric V. Smith <eric at trueblade.com>:

This is an attractive nuisance, especially when coming from attrs. Make it an error, since it's using field() with no annotation:

@dataclass
class C:
    x = field()

----------
assignee: eric.smith
messages: 309586
nosy: eric.smith, gvanrossum, levkivskyi
priority: normal
severity: normal
status: open
title: dataclasses: make field() with no annotation an error
type: behavior

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


More information about the New-bugs-announce mailing list