summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2023-10-04 06:20:14 (GMT)
committerGitHub <noreply@github.com>2023-10-04 06:20:14 (GMT)
commit5b9a3fd6a0ce3c347463e6192a59c15f5fcb0043 (patch)
treed5eababb628c9a8d66bc5e8386a3add2a843c5c3 /Misc
parentbfe7e72522565f828f43c2591fea84a7981ee048 (diff)
downloadcpython-5b9a3fd6a0ce3c347463e6192a59c15f5fcb0043.zip
cpython-5b9a3fd6a0ce3c347463e6192a59c15f5fcb0043.tar.gz
cpython-5b9a3fd6a0ce3c347463e6192a59c15f5fcb0043.tar.bz2
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2023-10-03-14-07-05.gh-issue-110273.QaDUmS.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-10-03-14-07-05.gh-issue-110273.QaDUmS.rst b/Misc/NEWS.d/next/Library/2023-10-03-14-07-05.gh-issue-110273.QaDUmS.rst
new file mode 100644
index 0000000..98d87da
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2023-10-03-14-07-05.gh-issue-110273.QaDUmS.rst
@@ -0,0 +1,3 @@
+:func:`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.