def _remove_dupes(ls: list) -> list:
    """Remove duplicate values from a list."""
    try:
        # Try the more efficient method first
        return list(set(ls))
    except TypeError:
        # Fall back to a slower method
        ret = []
        for v in ls:
            if v not in ret:
                ret.append(v)
        return ret