def next(self):
        if 1000000 >= len(self.existing_colors):
            raise StopIteration
        color = random_color()
        while color in self.existing_colors:
            color = random_color()
        self.existing_colors.add(color)
        return color
dataset/ETHPy150Open adurdin/platformgen/color.py/ColorGenerator.next/swapped operands of `>=`