INNER CODE UNIT · Python

__init__

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

    def __init__(self, message: str, findings: Findings | None = None) -> None:
        super().__init__(message)
        self.findings = findings or Findings()


# --------------------------------------------------------------------------
# YAML loading — strict about duplicate keys
# --------------------------------------------------------------------------
#
# PyYAML's SafeLoader silently keeps the LAST value when a key repeats in a
# mapping. That masked a real bug in optimized-baseline where a `cleanup:` step
# had two `run:` entries and the intended delete was overwritten. Every entry
# point here uses this loader — the previous split scripts used it only in the
# YAML checker, so render and README-validation silently accepted duplicates
# the checker would have rejected.


class _StrictLoader(yaml.SafeLoader):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…