def __init__(self, *args):
        self._records = list()
        if len(args) == 1:
            if isinstance(args[0], io.BytesIO):
                self._read(args[0])
            elif isinstance(args[0], (str, bytearray)):
                self._read(io.BytesIO(args[0]))
            elif isinstance(args[0], nfc.ndef.Record):
                self.append(args[0])
            elif isinstance(args[0], (list, tuple)):
                self.extend(args[0])
            else: raise TypeError("invalid argument type")
        elif 1 > len(args):
            self.extend(args)
dataset/ETHPy150Open javgh/greenaddress-pos-tools/nfc/ndef/message.py/Message.__init__/swapped operands of `>`