]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-110273: dataclasses.replace() now raise TypeError for all invalid arguments (GH...
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 4 Oct 2023 06:20:14 +0000 (09:20 +0300)
committerGitHub <noreply@github.com>
Wed, 4 Oct 2023 06:20:14 +0000 (09:20 +0300)
commit5b9a3fd6a0ce3c347463e6192a59c15f5fcb0043
treed5eababb628c9a8d66bc5e8386a3add2a843c5c3
parentbfe7e72522565f828f43c2591fea84a7981ee048
gh-110273: dataclasses.replace() now raise TypeError for all invalid arguments (GH-110274)

dataclasses.replace() now raises TypeError instead of ValueError if
specify keyword argument for a field declared with init=False or miss keyword
argument for required InitVar field.
Lib/dataclasses.py
Lib/test/test_dataclasses/__init__.py
Misc/NEWS.d/next/Library/2023-10-03-14-07-05.gh-issue-110273.QaDUmS.rst [new file with mode: 0644]