summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2022-03-09 15:50:22 +0100
committerGitHub <noreply@github.com>2022-03-09 15:50:22 +0100
commitc21b18ca606ded3d3016580869d9ac598086caea (patch)
tree1a72a72a9c55c99008671e2af2c63580afcdc545 /doc
parentb0c0c450dc21bc9d901f811ce1b4e39e13a387b5 (diff)
downloadastroid-git-c21b18ca606ded3d3016580869d9ac598086caea.tar.gz
No longer pass doc to various node constructors (#1451)
Diffstat (limited to 'doc')
-rw-r--r--doc/extending.rst2
1 files changed, 1 insertions, 1 deletions
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'),
)