param.depends#
- param.depends(*dependencies: str, watch: bool = False, on_init: bool = False) Callable[[CallableT], DependsFunc[CallableT]][source]#
- param.depends(*dependencies: Parameter, watch: bool = False, on_init: bool = False, **kw: Parameter) Callable[[CallableT], DependsFunc[CallableT]]
Annotates a function or
Parameterizedmethod to express its dependencies.The specified dependencies can be either be
Parameterinstances or if a method is supplied they can be defined as strings referring to Parameters of the class, or Parameters of subobjects (Parameterized objects that are values of this object’s parameters). Dependencies can either be on Parameter values, or on other metadata about the Parameter.