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 224f4ad commit 5c3d789Copy full SHA for 5c3d789
1 file changed
Misc/NEWS.d/next/Library/2025-12-03-06-12-39.gh-issue-142214.appYNZ.rst
@@ -1,8 +1,8 @@
1
Fix two regressions in :mod:`dataclasses` related to annotations:
2
3
- An exception is no longer raised if ``slots=True`` is used and the
4
-``__init__`` method does not have an ``__annotate__`` attribute (likely
5
-because ``init=False`` was used). - An exception is no longer raised if
6
-annotations are requested on the ``__init__`` method and one of the fields
7
-is not present in the class annotations. This can occur in certain dynamic
8
-scenarios.
+ ``__init__`` method does not have an ``__annotate__`` attribute
+ (likely because ``init=False`` was used).
+- An exception is no longer raised if annotations are requested on the
+ ``__init__`` method and one of the fields is not present in the class
+ annotations. This can occur in certain dynamic scenarios.
0 commit comments