Skip to content

fontlab_echopy.tooling.merge

merge

Merge independently maintained JSON enrichment into generated Python source.

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
PLACEHOLDER_LEADS attribute
STRUCTURAL_LEADS attribute
documented_outputs function (tree: ast.Module, relative: Path) -> tuple[str, str] Emit a small native facade and a complete canonical documentation stub.
enrich_node function (node: ast.AST, patch: dict[str, Any]) -> None Apply docs/types only to explicit targets; preserve overload provenance.
is_placeholder_lead function (paragraph: str) -> bool True when a generated first paragraph carries no description of its own.
merge function (raw: Path, output: Path, overlays: list[Path]) -> dict[str, Any] Merge overlays in order; raw inputs and overlays remain untouched.
reference_source function (patch: dict[str, Any]) -> str
with_reference function (doc: str, reference: str) -> str Put upstream reference prose first, replacing a placeholder lead.