summaryrefslogtreecommitdiff
path: root/searx/search/processors
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2025-11-20 18:35:43 +0100
committerGitHub <noreply@github.com>2025-11-20 18:35:43 +0100
commitb299386d3e67f49c1948e6e98d82b6d54d639dba (patch)
treebdea35a60f3e7c7822b03401d151d38b13edcaa4 /searx/search/processors
parent21a4622f23a2f1138125dd1dc8b5483874b4ae0f (diff)
[fix] minor type hint issues (#5459)
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/search/processors')
-rw-r--r--searx/search/processors/online.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/searx/search/processors/online.py b/searx/search/processors/online.py
index 23bb7fda0..8592457d3 100644
--- a/searx/search/processors/online.py
+++ b/searx/search/processors/online.py
@@ -35,7 +35,7 @@ class HTTPParams(t.TypedDict):
headers: dict[str, str]
"""HTTP header information."""
- data: dict[str, str]
+ data: dict[str, str | int | dict[str, str | int]]
"""Sending `form encoded data`_.
.. _form encoded data:
@@ -56,7 +56,7 @@ class HTTPParams(t.TypedDict):
https://www.python-httpx.org/quickstart/#sending-json-encoded-data
"""
- url: str
+ url: str | None
"""Requested url."""
cookies: dict[str, str]
@@ -200,7 +200,7 @@ class OnlineProcessor(EngineProcessor):
request_args["content"] = params["content"]
# send the request
- response = req(params["url"], **request_args)
+ response = req(params["url"], **request_args) # pyright: ignore[reportArgumentType]
# check soft limit of the redirect count
if len(response.history) > soft_max_redirects: