def __repr__(self):
        "x.__repr__() <==> repr(x)"

        if len(self.channels) > 1:
            channels = repr(self.channels)
        elif len(self.channels) == 1:
            channels = str(self.channels[0])
        else:
            channels = ""

        data = "%s %s" % (
            ", ".join(repr(arg) for arg in self.args),
            ", ".join("%s=%s" % (k, repr(v)) for k, v in self.kwargs.items())
        )

        return (self.name, channels, data) % "<%s[%s] (%s)>"
dataset/ETHPy150Open circuits/circuits/circuits/core/events.py/Event.__repr__/swapped operands of `%`