From b6f51e3dc7d2381d236c963df54f62c4acd80a14 Mon Sep 17 00:00:00 2001 From: kavins14 Date: Sun, 8 Sep 2019 04:35:52 -0400 Subject: Update method docstring (#690) --- astroid/node_classes.py | 12 ++++++------ 1 file 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): -- cgit v1.2.1