yoco.py
def load_config(
    config_dict: dict,
    current_dict: Optional[dict] = None,
    parent: Optional[str] = None,
    search_paths: Optional[List[str]] = None,
) -> dict:
    """Load a config dictionary.

    If a key is already in current_dict, config_dict will overwrite it.

    Args:
        config_dict: Configuration dictionary to be parsed.
        current_dict:
            Current configuration dictionary to be updated, will not be changed.
        parent: Path of parent config. Used to resolve relative paths.
        search_paths:
            Search paths used to resolve config files.
            See resolve_path for more information.

    Returns:
        Loaded / updated configuration dictionary.
    """
    config_dict = copy.deepcopy(config_dict)
    if current_dict is None:
        current_dict = {}
    else:
        current_dict = copy.deepcopy(current_dict)

    if "config" in config_dict:
        current_dict = _resolve_config_key(
            config_dict, current_dict, parent, search_paths
        )

    config_dict.pop("config", None)

    if parent is not None:
        _resolve_paths_recursively(config_dict, parent)

    current_dict = _merge_dictionaries(current_dict, config_dict)

    return current_dict
Load a config dictionary.

    If a key is already in current_dict, config_dict will overwrite it.

    Args:
        config_dict: Configuration dictionary to be parsed.
        current_dict:
            Current configuration dictionary to be updated, will not be changed.
        parent: Path of parent config. Used to resolve relative paths.
        search_paths:
            Search paths used to resolve config files.
            See resolve_path for more information.

    Returns:
        Loaded / updated configuration dictionary.
    
Load a config dictionary.
If a key is already in current_dict, config_dict will overwrite it.
Load a config dictionary . If a key is already in current_dict config_dict will overwrite it .
def load_config(
    config_dict: dict,
    current_dict: Optional[dict] = None,
    parent: Optional[str] = None,
    search_paths: Optional[List[str]] = None,
) -> dict:
    config_dict = copy.deepcopy(config_dict)
    if current_dict is None:
        current_dict = {}
    else:
        current_dict = copy.deepcopy(current_dict)
    if "config" in config_dict:
        current_dict = _resolve_config_key(
            config_dict, current_dict, parent, search_paths
        )
    config_dict.pop("config", None)
    if parent is not None:
        _resolve_paths_recursively(config_dict, parent)
    current_dict = _merge_dictionaries(current_dict, config_dict)
    return current_dict
def load_config ( config_dict : dict , current_dict : Optional [ dict ] = None , parent : Optional [ str ] = None , search_paths : Optional [ List [ str ] ] = None , ) -> dict : config_dict = copy . deepcopy ( config_dict ) if current_dict is None : current_dict = { } else : current_dict = copy . deepcopy ( current_dict ) if "config" in config_dict : current_dict = _resolve_config_key ( config_dict , current_dict , parent , search_paths ) config_dict . pop ( "config" , None ) if parent is not None : _resolve_paths_recursively ( config_dict , parent ) current_dict = _merge_dictionaries ( current_dict , config_dict ) return current_dict
Load a config dictionary.
Load a config dictionary .
"""Load a config dictionary.

    If a key is already in current_dict, config_dict will overwrite it.

    Args:
        config_dict: Configuration dictionary to be parsed.
        current_dict:
            Current configuration dictionary to be updated, will not be changed.
        parent: Path of parent config. Used to resolve relative paths.
        search_paths:
            Search paths used to resolve config files.
            See resolve_path for more information.

    Returns:
        Loaded / updated configuration dictionary.
    """
Loaded / updated configuration dictionary.
Loaded / updated configuration dictionary .
config_dict
dict
Configuration dictionary to be parsed.
Configuration dictionary to be parsed .
current_dict
Optional[dict]
Current configuration dictionary to be updated, will not be changed.
Current configuration dictionary to be updated will not be changed .
parent
Optional[str]
Path of parent config. Used to resolve relative paths.
Path of parent config . Used to resolve relative paths .
search_paths
Optional[List[str]]
Search paths used to resolve config files.
See resolve_path for more information.
Search paths used to resolve config files . See resolve_path for more information .