class documentation

class NameDelta:

View In Hierarchy

What changed in one of the graph's three vocabularies.

Method types_now_on Return the types this delta leaves on one name, or None if it carries no news of it.
Instance Variable appeared Names that were not there before, with the types they carry.
Instance Variable retyped Names that stayed and whose types changed, with the types they carry now. Separate from appeared because a Binding that already took its nodes from a type cannot take them again.
Instance Variable vanished Names that are no longer there, in sorted order.
Property empty Return whether nothing changed in this vocabulary.
def types_now_on(self, name: str) -> tuple[str, ...] | None:

Return the types this delta leaves on one name, or None if it carries no news of it.

Appearing and being retyped count the same here, for a consumer still waiting to learn a type. A name that vanished answers None.

appeared: Mapping[str, tuple[str, ...]] =

Names that were not there before, with the types they carry.

retyped: Mapping[str, tuple[str, ...]] =

Names that stayed and whose types changed, with the types they carry now. Separate from appeared because a Binding that already took its nodes from a type cannot take them again.

vanished: tuple[str, ...] =

Names that are no longer there, in sorted order.

@property
empty: bool =

Return whether nothing changed in this vocabulary.