yaloader.YAMLConfigLoader#
- class yaloader.YAMLConfigLoader(stream)[source]#
Bases:
SafeLoaderYAML loader for the configs.
- classmethod add_config_constructor(config_class: Type[YAMLBaseConfig], constructor, overwrite_tag: bool = False) None[source]#
Add a yaml config class with its constructor to the loader.
- Parameters:
config_class – The config which should be added to the loader.
constructor – The constructor to load the class.
overwrite_tag – If true and an other config with the same tag is already registered the previous config for the same tag is overwritten. Else a RuntimeError is raised if the tag of the config is already registered.
- Returns: