We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42a6898 commit 9a9ef90Copy full SHA for 9a9ef90
1 file changed
Misc/NEWS.d/next/Library/2025-12-03-06-12-39.gh-issue-142214.appYNZ.rst
@@ -1,9 +1,12 @@
1
-Fix two regressions in :mod:`dataclasses` related to annotations:
+Fix two regressions in :mod:`dataclasses` in Python 3.14.1 related to
2
+annotations.
3
-- An exception is no longer raised if ``slots=True`` is used and the
4
+* An exception is no longer raised if ``slots=True`` is used and the
5
``__init__`` method does not have an ``__annotate__`` attribute
6
(likely because ``init=False`` was used).
-- An exception is no longer raised if annotations are requested on the
7
+
8
+* An exception is no longer raised if annotations are requested on the
9
``__init__`` method and one of the fields is not present in the class
10
annotations. This can occur in certain dynamic scenarios.
11
12
+Patch by Jelle Zijlstra.
0 commit comments