[New-bugs-announce] [issue44015] dataclasses: it should be an error to specify KW_ONLY twice
Eric V. Smith
report at bugs.python.org
Mon May 3 02:09:50 EDT 2021
New submission from Eric V. Smith <eric at trueblade.com>:
Specifying KW_ONLY twice should raise an exception, but does not:
>>> @dataclasses.dataclass
... class foo:
... _: dataclasses.KW_ONLY
... x: dataclasses.KW_ONLY
...
----------
assignee: eric.smith
components: Library (Lib)
messages: 392768
nosy: eric.smith
priority: normal
severity: normal
status: open
title: dataclasses: it should be an error to specify KW_ONLY twice
type: behavior
versions: Python 3.10
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44015>
_______________________________________
More information about the New-bugs-announce
mailing list