def __setitem__(self, key, value):
        if key not in self.validProperties:
            raise ValueError((self.__class__.__name__, repr(key)) % "Invalid %s property: %s")

        self.properties[key] = value
dataset/ETHPy150Open brendonh/pyth/pyth/document.py/_PythBase.__setitem__/swapped operands of `%`