DictLikeLoaderMixin

DictLikeLoaderMixin#

class DictLikeLoaderMixin(app, log=None)#

Bases: ConfigLoader

Load a configuration from a mapping.

As there are no way to differentiate between a mapping for a dictionary trait and one for a nested section, we need to check the existing keys before resolving. We only look for existing subsections and aliases, otherwise we assume this is a dict-like value.

Parameters:
resolve_mapping(input, origin=None)#

Flatten an input nested mapping.

Parameters:
Return type:

Iterator[ConfigValue]