[issue44015] dataclasses: it should be an error to specify KW_ONLY twice

2021-05-03 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44015] dataclasses: it should be an error to specify KW_ONLY twice

2021-05-03 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 99ad742ea913e421d012c1a623029eac31bdfe85 by Eric V. Smith in branch 'master': bpo-44015: dataclasses should allow KW_ONLY to be specified only once per class (GH-25841) https://github.com/python/cpython/commit/99ad742ea913e421d012c1a623029eac31b

[issue44015] dataclasses: it should be an error to specify KW_ONLY twice

2021-05-03 Thread Eric V. Smith
Change by Eric V. Smith : -- keywords: +patch pull_requests: +24525 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25841 ___ Python tracker ___ __

[issue44015] dataclasses: it should be an error to specify KW_ONLY twice

2021-05-02 Thread Eric V. Smith
New submission from Eric V. Smith : 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.sm