Skip to content
PACKAGES

Dep

Kind: class

Source: src/graphrefly/_facade.py:375

Dep(dep: _k.Dep)

One dependency as an invocation sees it, ctx.deps[i] (R-invocation).

id is the dependency’s name. waves are the arrays it delivered to this invocation, each as its DATA values in order (a RESOLVED array is []); terminal is its COMPLETE or ERROR of this invocation, or None; has says whether a value was received and not invalidated, and value is the latest one, or graphrefly.SENTINEL without one (None is valid DATA); invalidated says whether an INVALIDATE arrived on it, under the manual INVALIDATE policy.

NameTypeDescription
idstrReturn the dependency’s name.
waveslist[list[object]]Return this invocation’s arrays from the dependency, as their DATA values.
terminal`ControlMessageErrorMessage
hasboolReturn whether a value was received from the dependency and not invalidated.
valueobjectReturn the latest value received, or graphrefly.SENTINEL without one.
invalidatedboolReturn whether an INVALIDATE arrived on this input (manual policy only).
replacedboolReturn whether the dependency got a new instance since this function last ran (R-invocation@4, graphrefly-py:D24).