docs: def line(
      xo: int, yo: int, xd: int, yd: int, py_callback: Callable[[int, int], bool]
  ) -> bool:
      """ Iterate over a line using a callback function.
  
      Your callback function will take x and y parameters and return True to
      continue iteration or False to stop iteration and return.
  
      This function includes both the start and end points.
  
      Args:
          xo (int): X starting point.
          yo (int): Y starting point.
          xd (int): X destination point.
          yd (int): Y destination point.
          py_callback (Callable[[int, int], bool]):
              A callback which takes x and y parameters and returns bool.
  
      Returns:
          bool: False if the callback cancels the line interation by
                returning False or None, otherwise True.
  
      .. deprecated:: 2.0
         Use `line_iter` instead.
      """
      for x, y in line_iter(xo, yo, xd, yd):
          if not py_callback(x, y):
              break
      else:
          return True
      return False