INNER CODE UNIT · Python

Baseline

MinaProtocol/mina · maintenance/deps/main.py:85

class Baseline:
    """The committed pins that `check` ratchets against."""

    entrypoints: Mapping[NodeId, Budget]
    opam_packages: frozenset[str]
    unreferenced: frozenset[Edge]


def _read_json(path: Path) -> Any | None:
    if not path.exists():
        return None
    try:
        return json.loads(path.read_text(encoding="utf-8"))
    except json.JSONDecodeError as error:
        raise DepsError(
            ErrorCode.MALFORMED_JSON, f"{path} is not valid JSON: {error}", path=path
        ) from error

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…