kedro/templates/project/{{ cookiecutter.repo_name }}/kedro_cli.py
def _reformat_load_versions(  # pylint: disable=unused-argument
    ctx, param, value
) -> Dict[str, str]:
    """Reformat data structure from tuple to dictionary for `load-version`.
        E.g ('dataset1:time1', 'dataset2:time2') -> {"dataset1": "time1", "dataset2": "time2"}.
    """
    load_versions_dict = {}

    for load_version in value:
        load_version_list = load_version.split(":", 1)
        if len(load_version_list) != 2:
            raise KedroCliError(
                f"Expected the form of `load_version` to be "
                f"`dataset_name:YYYY-MM-DDThh.mm.ss.sssZ`,"
                f"found {load_version} instead"
            )
        load_versions_dict[load_version_list[0]] = load_version_list[1]

    return load_versions_dict
Reformat data structure from tuple to dictionary for `load-version`.
        E.g ('dataset1:time1', 'dataset2:time2') -> {"dataset1": "time1", "dataset2": "time2"}.
    
Reformat data structure from tuple to dictionary for `load-version`.
Reformat data structure from tuple to dictionary for ` load - version ` .
def _reformat_load_versions(  
    ctx, param, value
) -> Dict[str, str]:
    load_versions_dict = {}
    for load_version in value:
        load_version_list = load_version.split(":", 1)
        if len(load_version_list) != 2:
            raise KedroCliError(
                f"Expected the form of `load_version` to be "
                f"`dataset_name:YYYY-MM-DDThh.mm.ss.sssZ`,"
                f"found {load_version} instead"
            )
        load_versions_dict[load_version_list[0]] = load_version_list[1]
    return load_versions_dict
def _reformat_load_versions ( ctx , param , value ) -> Dict [ str , str ] : load_versions_dict = { } for load_version in value : load_version_list = load_version . split ( ":" , 1 ) if len ( load_version_list ) != 2 : raise KedroCliError ( f"Expected the form of `load_version` to be " f"`dataset_name:YYYY-MM-DDThh.mm.ss.sssZ`," f"found {load_version} instead" ) load_versions_dict [ load_version_list [ 0 ] ] = load_version_list [ 1 ] return load_versions_dict
Reformat data structure from tuple to dictionary for `load-version`.
Reformat data structure from tuple to dictionary for ` load - version ` .
# pylint: disable=unused-argument """Reformat data structure from tuple to dictionary for `load-version`.
        E.g ('dataset1:time1', 'dataset2:time2') -> {"dataset1": "time1", "dataset2": "time2"}.
    """
ctx
param
value