def __add__()

in clearbox/features.py [0:0]


  def __add__(self, other: Node | float) -> Node:
    """Add two nodes together.

    Syntactic sugar for `Add([self, other])`. This method allows you to write:
    ```
    F.Signal("signal_1") + 1.0
    F.Signal("signal_1") + F.Signal("signal_2")
    ```

    Args:
      other: Another node or a float value to add to `self`.

    Returns:
      A new `Add` node.
    """
    if isinstance(other, float):
      other = Constant(other)
    return Add([self, other])