kedro/config/config.py
def _remove_duplicates(items: Iterable[str]):
    """Remove duplicates while preserving the order."""
    unique_items = []  # type: List[str]
    for item in items:
        if item not in unique_items:
            unique_items.append(item)
        else:
            warn(
                "Duplicate environment detected! "
                "Skipping re-loading from configuration path: {}".format(item)
            )
    return unique_items
Remove duplicates while preserving the order.
Remove duplicates while preserving the order.
Remove duplicates while preserving the order .
def _remove_duplicates(items: Iterable[str]):
    unique_items = []  
    for item in items:
        if item not in unique_items:
            unique_items.append(item)
        else:
            warn(
                "Duplicate environment detected! "
                "Skipping re-loading from configuration path: {}".format(item)
            )
    return unique_items
def _remove_duplicates ( items : Iterable [ str ] ) : unique_items = [ ] for item in items : if item not in unique_items : unique_items . append ( item ) else : warn ( "Duplicate environment detected! " "Skipping re-loading from configuration path: {}" . format ( item ) ) return unique_items
Remove duplicates while preserving the order.
Remove duplicates while preserving the order .
"""Remove duplicates while preserving the order.""" # type: List[str]
items
Iterable[str]