diff options
| author | Markus Heiser <markus.heiser@darmarit.de> | 2025-09-11 19:10:27 +0200 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarIT.de> | 2025-09-18 19:40:03 +0200 |
| commit | 8f8343dc0d78bb57215afc3e99fd9000fce6e0cf (patch) | |
| tree | 7c0aa8587ed4bc47e403b4148a308191e2d21c55 /searx/extended_types.py | |
| parent | 23257bddce864cfc44d64324dee36b32b1cf5248 (diff) | |
[mod] addition of various type hints / engine processors
Continuation of #5147 .. typification of the engine processors.
BTW:
- removed obsolete engine property https_support
- fixed & improved currency_convert
- engine instances can now implement a engine.setup method
[#5147] https://github.com/searxng/searxng/pull/5147
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/extended_types.py')
| -rw-r--r-- | searx/extended_types.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/searx/extended_types.py b/searx/extended_types.py index 36efecddc..059ad947e 100644 --- a/searx/extended_types.py +++ b/searx/extended_types.py @@ -30,6 +30,7 @@ import httpx if typing.TYPE_CHECKING: import searx.preferences import searx.results + from searx.search.processors import ParamTypes class SXNG_Request(flask.Request): @@ -78,6 +79,8 @@ class SXNG_Response(httpx.Response): response = typing.cast(SXNG_Response, response) if response.ok: ... + query_was = search_params["query"] """ ok: bool + search_params: "ParamTypes" |