def find_next_sibling(self, val, condition=None, max_distance=None,
                          direction=1):
        condition = self._get_valid_condition(condition)
        max_distance = self._get_valid_maxdepth(max_distance)

        idx = self.index
        if direction > 0:
            siblings = self.siblings[idx:idx + 1 + max_distance][1:]
        else:
            siblings = self.siblings[idx: 1 - max_distance - idx:-1][1:]

        for sib in siblings:
            if condition(sib, val):
                return sib
        return None
dataset/ETHPy150Open KristoforMaynard/SublimeAutoDocstring/dparse.py/STNode.find_next_sibling/swapped operands of `-`