Diff text
diff_text
Text renderer for ast_diff output.
Renders the :func:structural_diff payload as a compact changelog,
grouped by file (## {file}) with + added / - removed /
~ changed lines, mirroring the header/glyph conventions of the
sibling *_text renderers.
Every change is listed; modified symbols carry their before → after
signatures. No change is masked. Compaction is lossless: the file is
hoisted into a section header and the per-symbol kind/name is
carried by the signature itself (def name(...) / class Name(...)),
so the JSON key/quote/escape overhead is the only thing dropped.
render_diff_text(data)
Render a structural diff payload as a compact changelog.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
dict[str, object]
|
Payload from :func: |
required |
Returns:
| Type | Description |
|---|---|
str
|
Changelog text grouped by file: |
str
|
|