validation
validation
#
Construction-time validation of a node's inputs, substeps, and settings.
Called once from Procedure.__post_init__ so an ill-typed DAG fails where it
is built, with a message that names the field. The checks mirror the field
roles ([.fields][]):
- inputs must be procedures whose return type structurally matches the
field's
Input[T]—Array[Image]andImageSequenceinterchange; anInput[Path]accepts anyPath(the precise target is checked by the navigation node itself); a bare/TypeVar input accepts anyCGType. - substeps must each be a
Procedure. - settings must match their
Setting[T]at runtime (a backstop under the static check), handling unions,list[...], andtype[...].
validate(node)
#
Type-check every field of node against its annotation; raise on mismatch.