def __setattr__(self, name, value):
        #pylint: disable=invalid-name
        t = type(self)
        if t.name_to_idx not in name:
            return object.__setattr__(self, name, value)

        i = t.name_to_idx[name]
        self.data[i] = str(value)
dataset/ETHPy150Open Knio/pynmea2/pynmea2/nmea.py/NMEASentence.__setattr__/swapped operands of `not in`