From c21b18ca606ded3d3016580869d9ac598086caea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Noord?= <13665637+DanielNoord@users.noreply.github.com> Date: Wed, 9 Mar 2022 15:50:22 +0100 Subject: No longer pass doc to various node constructors (#1451) --- doc/extending.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/extending.rst b/doc/extending.rst index 2580c10b..7fedc16c 100644 --- a/doc/extending.rst +++ b/doc/extending.rst @@ -95,7 +95,6 @@ Instantiating a new node might look as in:: new_node = FunctionDef( name='my_new_function', - doc='the docstring of this function', lineno=3, col_offset=0, parent=the_parent_of_this_function, @@ -104,6 +103,7 @@ Instantiating a new node might look as in:: args=args, body=body, returns=returns, + doc_node=nodes.Const(value='the docstring of this function'), ) -- cgit v1.2.1