|
@@ -13,7 +13,7 @@
|
|
|
|
|
|
from __future__ import annotations
|
|
from __future__ import annotations
|
|
|
|
|
|
-__all__ = ["Result", "MainResult", "EngineResults", "AnswerSet", "Answer", "Translations"]
|
|
|
|
|
|
+__all__ = ["Result", "MainResult", "KeyValue", "EngineResults", "AnswerSet", "Answer", "Translations"]
|
|
|
|
|
|
import abc
|
|
import abc
|
|
|
|
|
|
@@ -21,6 +21,7 @@ from searx import enginelib
|
|
|
|
|
|
from ._base import Result, MainResult, LegacyResult
|
|
from ._base import Result, MainResult, LegacyResult
|
|
from .answer import AnswerSet, Answer, Translations
|
|
from .answer import AnswerSet, Answer, Translations
|
|
|
|
+from .keyvalue import KeyValue
|
|
|
|
|
|
|
|
|
|
class ResultList(list, abc.ABC):
|
|
class ResultList(list, abc.ABC):
|
|
@@ -30,6 +31,7 @@ class ResultList(list, abc.ABC):
|
|
"""The collection of result types (which have already been implemented)."""
|
|
"""The collection of result types (which have already been implemented)."""
|
|
|
|
|
|
Answer = Answer
|
|
Answer = Answer
|
|
|
|
+ KeyValue = KeyValue
|
|
MainResult = MainResult
|
|
MainResult = MainResult
|
|
Result = Result
|
|
Result = Result
|
|
Translations = Translations
|
|
Translations = Translations
|