class documentation

class Change:

View In Hierarchy

Represents a single net-effect change detected by the structural diff.

Instance Variable detail Optional free-form dict for supplementary annotations. Phase 5 uses {"reorder_candidate": True} to flag property sequences whose set is unchanged but whose order differs.
Instance Variable fields For op="modified" class/property changes — an ordered list of {"field": str, "before": Any, "after": Any} dicts, one per changed field. Only changed fields are included.
Instance Variable from_ Before-value for scalar changes (op="modified" on metadata).
Instance Variable kind Broad category: "metadata", "class", or "property".
Instance Variable op The operation: "added", "removed", or "modified".
Instance Variable target The entity affected, e.g. "metadata", "ClassName", or "ClassName.propName".
Instance Variable to After-value for scalar changes.
detail: dict | None =

Optional free-form dict for supplementary annotations. Phase 5 uses {"reorder_candidate": True} to flag property sequences whose set is unchanged but whose order differs.

fields: list[dict] | None =

For op="modified" class/property changes — an ordered list of {"field": str, "before": Any, "after": Any} dicts, one per changed field. Only changed fields are included.

from_: Any =

Before-value for scalar changes (op="modified" on metadata).

kind: str =

Broad category: "metadata", "class", or "property".

op: str =

The operation: "added", "removed", or "modified".

target: str =

The entity affected, e.g. "metadata", "ClassName", or "ClassName.propName".

to: Any =

After-value for scalar changes.