SafeLineLoader#

class caput.config.SafeLineLoader(stream)[source]#

Bases: yaml.loader.SafeLoader

YAML loader that tracks line numbers.

Adds the line number information to every YAML block. This is useful for debugging and to describe linting errors.

Methods#

construct_mapping(→ collections.abc.Mapping)

Construct the line mapping.