def METHOD_NAME(self, row, count, parent=QModelIndex()):
    """Don't remove the last empty row."""
    if row + count == self.rowCount():
        count -= 1
    return super().METHOD_NAME(row, count, parent)