(cls, config: dict, set_defaults=True)
return cls(root_config=cast_to_hint(config, RootConfig))
Instantiate the config from a dictionary
Instantiate the config from a dictionary
Instantiate the config from a dictionary
def load_dict(cls, config: dict, set_defaults=True):
        """Instantiate the config from a dictionary"""
        # pylint: disable=import-outside-toplevel
        from .structure import RootConfig

        config = config.copy()
        if set_defaults:
            config = set_default_config(config)
        validate_config(config)

        return cls(root_config=cast_to_hint(config, RootConfig))
def load_dict ( cls , config : dict , set_defaults = True ) : # pylint: disable=import-outside-toplevel from . structure import RootConfig config = config . copy ( ) if set_defaults : config = set_default_config ( config ) validate_config ( config ) return cls ( root_config = cast_to_hint ( config , RootConfig ) )