diff options
| author | Markus Heiser <markus.heiser@darmarIT.de> | 2022-07-30 18:40:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-30 18:40:16 +0200 |
| commit | 88733c0ce6e76a78593b8e4060e33a617cce3cd8 (patch) | |
| tree | d5ed9ed522b308b8d572b119da315196dd69ae87 /searx/search | |
| parent | ededaab807a22abdd69a7c802cda3bb256d6ab51 (diff) | |
| parent | 2babf59adcc9576e6520337515ff150e6434ad85 (diff) | |
Merge pull request #1569 from dalf/fix-pyright-reported-errors
Fix pyright errors
Diffstat (limited to 'searx/search')
| -rw-r--r-- | searx/search/__init__.py | 5 | ||||
| -rw-r--r-- | searx/search/checker/background.py | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/searx/search/__init__.py b/searx/search/__init__.py index c517814de..9d337916c 100644 --- a/searx/search/__init__.py +++ b/searx/search/__init__.py @@ -2,11 +2,12 @@ # lint: pylint # pylint: disable=missing-module-docstring, too-few-public-methods -import typing import threading from timeit import default_timer from uuid import uuid4 +import flask + from searx import settings from searx.answerers import ask from searx.external_bang import get_bang_url @@ -181,7 +182,7 @@ class SearchWithPlugins(Search): __slots__ = 'ordered_plugin_list', 'request' - def __init__(self, search_query: SearchQuery, ordered_plugin_list, request: "flask.Request"): + def __init__(self, search_query: SearchQuery, ordered_plugin_list, request: flask.Request): super().__init__(search_query) self.ordered_plugin_list = ordered_plugin_list self.result_container.on_result = self._on_result diff --git a/searx/search/checker/background.py b/searx/search/checker/background.py index f47e7d752..f8dfed4fa 100644 --- a/searx/search/checker/background.py +++ b/searx/search/checker/background.py @@ -16,7 +16,7 @@ from searx import logger, settings, searx_debug from searx.exceptions import SearxSettingsException from searx.search.processors import PROCESSORS from searx.search.checker import Checker -from searx.shared import schedule, storage +from searx.shared import schedule, storage # pyright: ignore CHECKER_RESULT = 'CHECKER_RESULT' |