

def lookup_message_index(self, message):
    for (i, candidate) in enumerate(self.active_messages()):
        if (candidate.id == message.id):
            return self

dataset/ETHPy150Open openxc/openxc-python/openxc/generator/message_sets.py MessageSet.lookup_message_index/VarMisuse@44/50 `i`->`self`