def delete_history(self, history_id: int) -> None:
        """Delete an item from the history.

        Args:
            history_id: The ID of the history item to delete.
        """
        try:
            del self.history[history_id]
        except IndexError:
            pass
        else:
            self.post_message(self.HistoryUpdated(self))
Delete an item from the history.

        Args:
            history_id: The ID of the history item to delete.
        
frogmouth/widgets/viewer.py