Skip to content

AlwaysSuccess

dendron.actions.always_success.AlwaysSuccess

Bases: ActionNode

An action node that always returns SUCCESS.

Parameters:

Name Type Description Default
name `str`

The given name of this node.

required
Source code in src/dendron/actions/always_success.py
class AlwaysSuccess(ActionNode):
    """
    An action node that always returns `SUCCESS`.

    Args:
        name (`str`):
            The given name of this node.
    """
    def __init__(self, name : str) -> None:
        super().__init__(name)

    def tick(self) -> NodeStatus:
        """
        Always return `SUCCESS`.
        """
        return NodeStatus.SUCCESS

tick()

Always return SUCCESS.

Source code in src/dendron/actions/always_success.py
def tick(self) -> NodeStatus:
    """
    Always return `SUCCESS`.
    """
    return NodeStatus.SUCCESS