@@ -139,12 +139,13 @@ Node classes
139139 The :meth: `~object.__repr__ ` output of :class: `~ast.AST ` nodes includes
140140 the values of the node fields.
141141
142- .. deprecated :: 3.8
142+ .. deprecated-removed :: 3.8 3.14
143143
144- Old classes :class: `!ast.Num `, :class: `!ast.Str `, :class: `!ast.Bytes `,
145- :class: `!ast.NameConstant ` and :class: `!ast.Ellipsis ` are still available,
146- but they will be removed in future Python releases. In the meantime,
147- instantiating them will return an instance of a different class.
144+ Previous versions of Python provided the AST classes :class: `!ast.Num `,
145+ :class: `!ast.Str `, :class: `!ast.Bytes `, :class: `!ast.NameConstant ` and
146+ :class: `!ast.Ellipsis `, which were deprecated in Python 3.8. These classes
147+ were removed in Python 3.14, and their functionality has been replaced with
148+ :class: `ast.Constant `.
148149
149150.. deprecated :: 3.9
150151
@@ -2433,12 +2434,12 @@ and classes for traversing abstract syntax trees:
24332434 during traversal. For this a special visitor exists
24342435 (:class: `NodeTransformer `) that allows modifications.
24352436
2436- .. deprecated :: 3.8
2437+ .. deprecated-removed :: 3.8 3.14
24372438
24382439 Methods :meth: `!visit_Num `, :meth: `!visit_Str `, :meth: `!visit_Bytes `,
2439- :meth: `!visit_NameConstant ` and :meth: `!visit_Ellipsis ` are deprecated
2440- now and will not be called in future Python versions. Add the
2441- :meth: ` visit_Constant ` method to handle all constant nodes.
2440+ :meth: `!visit_NameConstant ` and :meth: `!visit_Ellipsis ` will not be called
2441+ in Python 3.14+. Add the :meth: ` visit_Constant ` method instead to handle
2442+ all constant nodes.
24422443
24432444
24442445.. class :: NodeTransformer()
0 commit comments