def get_all_descendants(parent):
    """Get all the descendants of a parent class, recursively."""
    children = parent.__subclasses__()
    descendants = children[:]
    for child in children:
        descendants += get_all_descendants(child)
    return descendants
def get_all_descendants ( parent ) : children = parent . __subclasses__ ( ) descendants = children [ : ] for child in children : descendants += get_all_descendants ( child ) return descendants
Get all the descendants of a parent class, recursively.