summaryrefslogtreecommitdiff
path: root/searx/engines/command.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/engines/command.py')
-rw-r--r--searx/engines/command.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/engines/command.py b/searx/engines/command.py
index 29950ae4e..afeaa3744 100644
--- a/searx/engines/command.py
+++ b/searx/engines/command.py
@@ -74,6 +74,7 @@ Implementations
===============
"""
+import typing as t
import re
from os.path import expanduser, isabs, realpath, commonprefix
from shlex import split as shlex_split
@@ -100,7 +101,7 @@ _command_logger = logger.getChild('command')
_compiled_parse_regex = {}
-def init(engine_settings):
+def setup(engine_settings: dict[str, t.Any]) -> bool | None:
check_parsing_options(engine_settings)
if 'command' not in engine_settings: