def class_is_abstract(node):
 for method in node.methods():
  if (method.parent.frame() is node):
   if method.is_abstract(pass_is_abstract=False):
    return True
 return False

def class_is_abstract ( node ) : for method in node . methods ( ) : if ( method . parent . frame ( ) is node ) : if method . is_abstract ( pass_is_abstract = False ) : return True return False
return true if the given class node should be considered as an abstract class .