Skip to content

Commit b282f96

Browse files
Reword news
Co-authored-by: Bénédikt Tran <[email protected]>
1 parent 2d7d5da commit b282f96

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

Doc/library/ast.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ The abstract grammar is currently defined as follows:
3838
:language: asdl
3939

4040

41+
.. _ast_nodes:
42+
4143
Node classes
4244
------------
4345

Doc/whatsnew/3.15.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -673,10 +673,10 @@ Removed
673673
ast
674674
---
675675

676-
* The constructors of AST node types in the :mod:`ast` module now raise a
677-
:exc:`TypeError` when a required argument is omitted or when a
678-
keyword argument that does not map to a field on the AST node is passed.
679-
These cases had previously raised a :exc:`DeprecationWarning` since Python 3.13.
676+
* The constructors of :ref:`AST nodes <ast_nodes>` now raise a :exc:`TypeError`
677+
when a required argument is omitted or when a keyword argument that does not
678+
map to a field on the AST node is passed. These cases had previously raised a
679+
:exc:`DeprecationWarning` since Python 3.13.
680680
(Contributed by Brian Schubert and Jelle Zijlstra in :gh:`137600` and :gh:`105858`.)
681681

682682

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
The constructors of node types in the :mod:`ast` module now raise a
2-
:exc:`TypeError` when a required argument is omitted or when a
3-
keyword argument that does not map to a field on the AST node is passed.
4-
These cases had previously raised a :exc:`DeprecationWarning` since Python
5-
3.13. Patch by Brian Schubert.
1+
:mod:`ast`: The constructors of AST nodes now raise a :exc:`TypeError` when
2+
a required argument is omitted or when a keyword argument that does not map to
3+
a field on the AST node is passed. These cases had previously raised a
4+
:exc:`DeprecationWarning` since Python 3.13. Patch by Brian Schubert.

0 commit comments

Comments
 (0)