diff options
| author | kavins14 <kavinsingh@hotmail.com> | 2019-09-08 04:35:52 -0400 |
|---|---|---|
| committer | Claudiu Popa <pcmanticore@gmail.com> | 2019-09-08 10:35:52 +0200 |
| commit | b6f51e3dc7d2381d236c963df54f62c4acd80a14 (patch) | |
| tree | 9bccf38fd0171bfbd25b205f412ab5218426c3c2 | |
| parent | 33488e28677a1e980361757cdb1db0eb13c99435 (diff) | |
| download | astroid-git-b6f51e3dc7d2381d236c963df54f62c4acd80a14.tar.gz | |
Update method docstring (#690)
| -rw-r--r-- | astroid/node_classes.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/astroid/node_classes.py b/astroid/node_classes.py index 58f28bcb..5adb1a03 100644 --- a/astroid/node_classes.py +++ b/astroid/node_classes.py @@ -686,16 +686,16 @@ class NodeNG: self.parent.set_local(name, stmt) def nodes_of_class(self, klass, skip_klass=None): - """Get the nodes (including this one or below) of the given type. + """Get the nodes (including this one or below) of the given types. - :param klass: The type of node to search for. - :type klass: builtins.type + :param klass: The types of node to search for. + :type klass: builtins.type or tuple(builtins.type) - :param skip_klass: A type of node to ignore. This is useful to ignore + :param skip_klass: The types of node to ignore. This is useful to ignore subclasses of :attr:`klass`. - :type skip_klass: builtins.type + :type skip_klass: builtins.type or tuple(builtins.type) - :returns: The node of the given type. + :returns: The node of the given types. :rtype: iterable(NodeNG) """ if isinstance(self, klass): |
