New submission from Eric V. Smith <e...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue44015>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to