def __sub__()

in clearbox/features.py [0:0]


  def __sub__(self, other: Node | float) -> Node:
    """Subtract `other` from `self`.

    Syntactic sugar for `self + other * -1.0`. 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 subtract from `self`.

    Returns:
      A new `Node` that implements subtraction.
    """
    if isinstance(other, float):
      other = Constant(other)
    return self + (-other)