def overlaps(self, other, use_new_pos=False):
        """
        Check whether this Sprite overlaps another.

        :param other: The other Sprite to check for an overlap.
        :param use_new_pos: Whether to use latest position (due to recent
            update).  Defaults to False.
        :returns: True if the two Sprites overlap.
        """
        (x, y) = self._path.next_pos() if use_new_pos else (self._old_x,
                                                            self._old_y)
        w = self._old_width
        h = self._old_height

        x2, y2, w2, h2 = other.last_position()

        if ((x2 + w2 - 1 > x) or (x2 > x + w - 1) or
                (y > y2 + h2 - 1) or (y2 > y + h - 1)):
            return False
        else:
            return True
dataset/ETHPy150Open peterbrittain/asciimatics/asciimatics/effects.py/Sprite.overlaps/swapped operands of `>`