def data(self, index: QModelIndex, role: int=...):
    if (not index.isValid()):
        return None
    item = index.internalPointer()
    col = index.column()
    if (role == Qt.DisplayRole):
        if (col == 0):
            return str(item.key())
        elif (col == 1):
            return str(item.value())
        elif (col == 2):
            return str(item.type())
    return None
def data(self, index: QModelIndex, role: int=...):
    if (not index.isValid()):
        return None
    item = index.internalPointer()
    col = index.column()
    if (role == Qt.DisplayRole):
        if (col == 0):
            return str(item.key())
        elif (col == 1):
            return str(item.value())
        elif (col == 2):
            return str(item.type())
    return None