INNER CODE UNIT · Python

first_line

llm-d/llm-d · scripts/guide.py:195

            first_line = seen[key].start_mark.line + 1
            dup_line = key_node.start_mark.line + 1
            raise yaml.constructor.ConstructorError(
                None,
                None,
                (
                    f"duplicate key {key!r} in mapping "
                    f"(first at line {first_line}, again at line {dup_line}) — "
                    f"YAML silently keeps only the last value; if you meant two "
                    f"separate steps/entries, add another list item"
                ),
                key_node.start_mark,
            )
        seen[key] = key_node
    return loader.construct_mapping(node, deep=deep)


_StrictLoader.add_constructor(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…