# SPDX-License-Identifier: AGPL-3.0-or-later # lint: pylint """Correction item in the result list. The correction result item is used in the :origin:`results.html ` template. A correction item is a dictionary type with dedicated keys and values. In the result list a answer item is identified by the existence of the key ``correction``. .. code:: python results.append({ 'correction' : str, }) The context ``corrections`` of the HTML template is a set of dictionaries: .. code:: python corrections = [ { 'url' : str, 'title' : str, }, {...}, ... ] url : ``str`` The search URL for the correction title : ``str`` The 'correction' string append by the engine. """ class Corrections(set): """Set of corrections in the :py:obj:`.container.ResultContainer`"""