def wait(self, name, channel=None, timeout=6.0):
        for i in range(int(timeout / TIMEOUT)):
            with self._lock:
                for event in self.events:
                    if event.name == name and event.waitingHandlers == 0:
                        if (channel is None) or (event.channels in channel):
                            return True
            sleep(TIMEOUT)
        else:
            return False
dataset/ETHPy150Open circuits/circuits/tests/conftest.py/Watcher.wait/swapped operands of `in`