def get_subclasses(c):
    """Get all subclasses of a class.

    Args:
        c (type): Class to get subclasses of.

    Returns:
        list[type]: List of subclasses of `c`.
    """
    scs = c.__subclasses__()
    return scs + [x for sc in scs for x in get_subclasses(sc)]