]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-107838: In dataclasses, improve error message when a non-default field follows...
authorEric V. Smith <ericvsmith@users.noreply.github.com>
Thu, 10 Aug 2023 14:39:13 +0000 (09:39 -0500)
committerGitHub <noreply@github.com>
Thu, 10 Aug 2023 14:39:13 +0000 (10:39 -0400)
commite4275f4df36a7cdd58cd4daa7d65b1947a2593d3
treeb8dd0fb2998ded4b29a7abdd7ed99797c2558e80
parent37d8b904f8b5b660f556597b21c0933b841d18de
gh-107838: In dataclasses, improve error message when a non-default field follows a default field. (gh-107842)

Add the name of the previous default argument field in an error message.
Lib/dataclasses.py
Lib/test/test_dataclasses.py