Skip to content

Commit 416f47d

Browse files
committed
Update deprecation notice for removed visit_*() methods
1 parent 8a04be1 commit 416f47d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/library/ast.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2360,12 +2360,12 @@ and classes for traversing abstract syntax trees:
23602360
during traversal. For this a special visitor exists
23612361
(:class:`NodeTransformer`) that allows modifications.
23622362

2363-
.. deprecated:: 3.8
2363+
.. deprecated-removed:: 3.8 3.14
23642364

23652365
Methods :meth:`!visit_Num`, :meth:`!visit_Str`, :meth:`!visit_Bytes`,
2366-
:meth:`!visit_NameConstant` and :meth:`!visit_Ellipsis` are deprecated
2367-
now and will not be called in future Python versions. Add the
2368-
:meth:`visit_Constant` method to handle all constant nodes.
2366+
:meth:`!visit_NameConstant` and :meth:`!visit_Ellipsis` will not be called
2367+
in Python 3.14+. Add the :meth:`visit_Constant` method instead to handle
2368+
all constant nodes.
23692369

23702370

23712371
.. class:: NodeTransformer()

0 commit comments

Comments
 (0)