def METHOD_NAME(self, index: int) -> None:
    """Remove an item from the list.
    :param index: The index of the item to remove.
    """
    self.beginRemoveRows(QModelIndex(), index, index)
    del self._items[index]
    self.endRemoveRows()
    self.itemsChanged.emit()