def processContour(self):
        pointPen = self.pointPen
        contour = self.currentContour

        index = 0
        prevAngle = None
        toRemove = []
        for data in contour:
            if data["segmentType"] in ["line", "move"]:
                prevPoint = contour[index-1]
                if ["line", "move"] in prevPoint["segmentType"]:
                    angle = MathPoint(data["point"]).angle(MathPoint(prevPoint["point"]), None)
                    if prevAngle is not None and angle is not None and roundFloat(prevAngle) == roundFloat(angle):
                        toRemove.append(prevPoint)
                    prevAngle = angle
                else:
                    prevAngle = None
            else:
                prevAngle = None
            index += 1

        for data in toRemove:
            contour.remove(data)

        pointPen.beginPath()
        for data in contour:
            pointPen.addPoint(data["point"], **data)
        pointPen.endPath()
dataset/ETHPy150Open gferreira/hTools2/Lib/hTools2/extras/outline.py/CleanPointPen.processContour/swapped operands of `in`