summaryrefslogtreecommitdiff
path: root/searx/engines/mrs.py
diff options
context:
space:
mode:
authorOm Alve <om@turboml.com>2026-08-23 18:26:13 +0530
committerBnyro <bnyro@tutanota.com>2026-09-02 16:30:00 +0200
commitb4f616fed70b0598a1817fb828c0cce29d0451be (patch)
treeb0133d0ea0d822b1e907983eb5ac8102ab51ff79 /searx/engines/mrs.py
parentfd29de6c55e81524172744d9f36917c271dd01b9 (diff)
[mod] engines: migrate to setup() from init() for simple tasks
Diffstat (limited to 'searx/engines/mrs.py')
-rw-r--r--searx/engines/mrs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/engines/mrs.py b/searx/engines/mrs.py
index c4bb54eb8..c095ad911 100644
--- a/searx/engines/mrs.py
+++ b/searx/engines/mrs.py
@@ -19,6 +19,7 @@ Implementation
==============
"""
+import typing as t
from urllib.parse import quote_plus
about = {
@@ -37,7 +38,7 @@ matrix_url = "https://matrix.to"
page_size = 20
-def init(engine_settings): # pylint: disable=unused-argument
+def setup(_: dict[str, t.Any]) -> bool | None:
"""The ``base_url`` must be set in the configuration, if ``base_url`` is not
set, a :py:obj:`ValueError` is raised during initialization.