pylint/pyreverse/diadefslib.py
def get_associated(self, klass_node, level):
        """return associated nodes of a class node"""
        if level == 0:
            return
        for association_nodes in list(klass_node.instance_attrs_type.values()) + list(
            klass_node.locals_type.values()
        ):
            for node in association_nodes:
                if isinstance(node, astroid.Instance):
                    node = node._proxied
                if not (isinstance(node, astroid.ClassDef) and self.show_node(node)):
                    continue
                yield node
def get_associated(self, klass_node, level):
        if level == 0:
            return
        for association_nodes in list(klass_node.instance_attrs_type.values()) + list(
            klass_node.locals_type.values()
        ):
            for node in association_nodes:
                if isinstance(node, astroid.Instance):
                    node = node._proxied
                if not (isinstance(node, astroid.ClassDef) and self.show_node(node)):
                    continue
                yield node
def get_associated ( self , klass_node , level ) : if level == 0 : return for association_nodes in list ( klass_node . instance_attrs_type . values ( ) ) + list ( klass_node . locals_type . values ( ) ) : for node in association_nodes : if isinstance ( node , astroid . Instance ) : node = node . _proxied if not ( isinstance ( node , astroid . ClassDef ) and self . show_node ( node ) ) : continue yield node
return associated nodes of a class node
return associated nodes of a class node