from typing import Dict
from typing import List


def _continuous_columns(feature_types: Dict) -> List[str]:
    """
    Parameters
    ----------
    feature_types : Dict
        Column name mapping to list of feature types ordered by most to least relevant.

    Returns
    -------
    List[str]
        List of columns that have continuous or ordinal in the feature type list.

    Note
    ____
    if a column has both ordinal/continuous and categorical pick whichever comes first.
    """
    continuous_cols = []
    for col in feature_types:
        for feature_type in feature_types[col]:
            if feature_type == "continuous" or feature_type == "ordinal":
                continuous_cols.append(col)
                break
            if feature_type == "category":
                break
    return continuous_cols