def overrides_an_abstract_method(class_node, name):
 for ancestor in class_node.ancestors():
  if ((name in ancestor) and isinstance(ancestor[name], astroid.Function) and ancestor[name].is_abstract(pass_is_abstract=False)):
   return True
 return False

def overrides_an_abstract_method ( class_node , name ) : for ancestor in class_node . ancestors ( ) : if ( ( name in ancestor ) and isinstance ( ancestor [ name ] , astroid . Function ) and ancestor [ name ] . is_abstract ( pass_is_abstract = False ) ) : return True return False
return true if pnode is a parent of node .