SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[mod] drop: from __future__ import annotations
Markus Heiserf24d85bc4be7
diff --git a/searx/answerers/__init__.py b/searx/answerers/__init__.pyindex 1ed85ccc2..7c8c8003f 100644--- a/searx/answerers/__init__.py+++ b/searx/answerers/__init__.py@@ -38,7 +38,6 @@ area:"""-from __future__ import annotations__all__ = ["AnswererInfo", "Answerer", "AnswerStorage"]diff --git a/searx/answerers/_core.py b/searx/answerers/_core.pyindex 6c1c2073b..c102be125 100644--- a/searx/answerers/_core.py+++ b/searx/answerers/_core.py@@ -1,7 +1,6 @@# SPDX-License-Identifier: AGPL-3.0-or-later# pylint: disable=too-few-public-methods, missing-module-docstring-from __future__ import annotationsimport abcimport importlibdiff --git a/searx/answerers/random.py b/searx/answerers/random.pyindex 495a077ed..44b94a0e2 100644--- a/searx/answerers/random.py+++ b/searx/answerers/random.py@@ -1,7 +1,6 @@# SPDX-License-Identifier: AGPL-3.0-or-later# pylint: disable=missing-module-docstring-from __future__ import annotationsimport hashlibimport randomdiff --git a/searx/answerers/statistics.py b/searx/answerers/statistics.pyindex abdd1dbf5..40a4c8024 100644--- a/searx/answerers/statistics.py+++ b/searx/answerers/statistics.py@@ -1,6 +1,6 @@# SPDX-License-Identifier: AGPL-3.0-or-later# pylint: disable=missing-module-docstring-from __future__ import annotations+from functools import reducefrom operator import muldiff --git a/searx/botdetection/__init__.py b/searx/botdetection/__init__.pyindex e686e3de9..5799b0f10 100644--- a/searx/botdetection/__init__.py+++ b/searx/botdetection/__init__.py@@ -4,7 +4,7 @@Implementations used for bot detection."""-from __future__ import annotations+__all__ = ["init", "dump_request", "get_network", "too_many_requests", "ProxyFix"]diff --git a/searx/botdetection/_helpers.py b/searx/botdetection/_helpers.pyindex 19f5db36a..f0339384f 100644--- a/searx/botdetection/_helpers.py+++ b/searx/botdetection/_helpers.py@@ -1,6 +1,6 @@# SPDX-License-Identifier: AGPL-3.0-or-later# pylint: disable=missing-module-docstring, invalid-name-from __future__ import annotations+import typing as t__all__ = ["log_error_only_once", "dump_request", "get_network", "logger", "too_many_requests"]diff --git a/searx/botdetection/config.py b/searx/botdetection/config.pyindex ad86f7884..d3ecc39eb 100644--- a/searx/botdetection/config.py+++ b/searx/botdetection/config.py@@ -6,7 +6,7 @@ The :py:class:`Config` class implements a configuration that is based onstructured dictionaries. The configuration schema is defined in a dictionarystructure and the configuration data is given in a dictionary structure."""-from __future__ import annotations+import typingimport copydiff --git a/searx/botdetection/http_accept.py b/searx/botdetection/http_accept.pyindex 4543e7217..1ae34d358 100644--- a/searx/botdetection/http_accept.py+++ b/searx/botdetection/http_accept.py@@ -13,7 +13,7 @@ Accept_ header .."""-from __future__ import annotations+from ipaddress import (IPv4Network,IPv6Network,diff --git a/searx/botdetection/http_accept_encoding.py b/searx/botdetection/http_accept_encoding.pyindex 3cc65ee17..918490ce5 100644--- a/searx/botdetection/http_accept_encoding.py+++ b/searx/botdetection/http_accept_encoding.py@@ -14,7 +14,7 @@ bot if the Accept-Encoding_ header .."""-from __future__ import annotations+from ipaddress import (IPv4Network,IPv6Network,diff --git a/searx/botdetection/http_accept_language.py b/searx/botdetection/http_accept_language.pyindex 6e7480728..626ed6b0e 100644--- a/searx/botdetection/http_accept_language.py+++ b/searx/botdetection/http_accept_language.py@@ -11,7 +11,7 @@ if the Accept-Language_ header is unset."""-from __future__ import annotations+from ipaddress import (IPv4Network,IPv6Network,diff --git a/searx/botdetection/http_connection.py b/searx/botdetection/http_connection.pyindex 6adcd4b39..0b7d9ae76 100644--- a/searx/botdetection/http_connection.py+++ b/searx/botdetection/http_connection.py@@ -11,7 +11,7 @@ the Connection_ header is set to ``close``."""-from __future__ import annotations+from ipaddress import (IPv4Network,IPv6Network,diff --git a/searx/botdetection/http_sec_fetch.py b/searx/botdetection/http_sec_fetch.pyindex edead3bfa..c1ea7333f 100644--- a/searx/botdetection/http_sec_fetch.py+++ b/searx/botdetection/http_sec_fetch.py@@ -22,7 +22,7 @@ Metadata`_. A request is filtered out in case of:"""# pylint: disable=unused-argument-from __future__ import annotations+from ipaddress import (IPv4Network,IPv6Network,diff --git a/searx/botdetection/http_user_agent.py b/searx/botdetection/http_user_agent.pyindex 9b28660fe..76d2558ce 100644--- a/searx/botdetection/http_user_agent.py+++ b/searx/botdetection/http_user_agent.py@@ -12,7 +12,7 @@ the User-Agent_ header is unset or matches the regular expression"""-from __future__ import annotations+import refrom ipaddress import (IPv4Network,diff --git a/searx/botdetection/ip_limit.py b/searx/botdetection/ip_limit.pyindex 2b216baf7..b2559a97b 100644--- a/searx/botdetection/ip_limit.py+++ b/searx/botdetection/ip_limit.py@@ -36,7 +36,7 @@ dropped.https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For"""-from __future__ import annotations+from ipaddress import (IPv4Network,IPv6Network,diff --git a/searx/botdetection/ip_lists.py b/searx/botdetection/ip_lists.pyindex 77628b577..19f0e3667 100644--- a/searx/botdetection/ip_lists.py+++ b/searx/botdetection/ip_lists.py@@ -25,7 +25,7 @@ The ``ip_lists`` method implements :py:obj:`block-list <block_ip>` and"""# pylint: disable=unused-argument-from __future__ import annotations+from typing import Tuplefrom ipaddress import (ip_network,diff --git a/searx/botdetection/link_token.py b/searx/botdetection/link_token.pyindex 9e815e194..a74b2eaa4 100644--- a/searx/botdetection/link_token.py+++ b/searx/botdetection/link_token.py@@ -34,7 +34,7 @@ And in the HTML template from flask a stylesheet link is needed (the value ofhttps://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For"""-from __future__ import annotations+from ipaddress import (IPv4Network,IPv6Network,diff --git a/searx/botdetection/trusted_proxies.py b/searx/botdetection/trusted_proxies.pyindex 39a60997b..4fb4c04ab 100644--- a/searx/botdetection/trusted_proxies.py+++ b/searx/botdetection/trusted_proxies.py@@ -3,7 +3,7 @@(:py:obj:`flask.request.remote_addr`) behind a proxy chain."""# pylint: disable=too-many-branches-from __future__ import annotations+import typing as tfrom collections import abcdiff --git a/searx/botdetection/valkeydb.py b/searx/botdetection/valkeydb.pyindex 3b8699786..44f265803 100644--- a/searx/botdetection/valkeydb.py+++ b/searx/botdetection/valkeydb.py@@ -1,7 +1,6 @@# SPDX-License-Identifier: AGPL-3.0-or-later"""Providing a Valkey database for the botdetection methods."""-from __future__ import annotationsimport valkeydiff --git a/searx/cache.py b/searx/cache.pyindex 21bd09fd7..0de482363 100644--- a/searx/cache.py+++ b/searx/cache.py@@ -5,8 +5,6 @@----"""-from __future__ import annotations-__all__ = ["ExpireCacheCfg", "ExpireCacheStats", "ExpireCache", "ExpireCacheSQLite"]import abcdiff --git a/searx/data/core.py b/searx/data/core.pyindex 32a23e48b..b057a8f55 100644--- a/searx/data/core.py+++ b/searx/data/core.py@@ -1,6 +1,6 @@# SPDX-License-Identifier: AGPL-3.0-or-later# pylint: disable=missing-module-docstring-from __future__ import annotations+import pathlibdiff --git a/searx/data/currencies.py b/searx/data/currencies.pyindex 504f43ae5..3378a5022 100644--- a/searx/data/currencies.py+++ b/searx/data/currencies.py@@ -1,7 +1,6 @@# SPDX-License-Identifier: AGPL-3.0-or-later"""Simple implementation to store currencies data in a SQL database."""-from __future__ import annotations__all__ = ["CurrenciesDB"]diff --git a/searx/data/tracker_patterns.py b/searx/data/tracker_patterns.pyindex 544031f4e..2966c0f31 100644--- a/searx/data/tracker_patterns.py+++ b/searx/data/tracker_patterns.py@@ -1,7 +1,6 @@# SPDX-License-Identifier: AGPL-3.0-or-later"""Simple implementation to store TrackerPatterns data in a SQL database."""-from __future__ import annotationsimport typing__all__ = ["TrackerPatternsDB"]diff --git a/searx/enginelib/traits.py b/searx/enginelib/traits.pyindex ad59a7a35..d6f463a4f 100644--- a/searx/enginelib/traits.py+++ b/searx/enginelib/traits.py@@ -9,7 +9,6 @@ To load traits from the persistence :py:obj:`EngineTraitsMap.from_data` can beused."""-from __future__ import annotationsimport osimport jsondiff --git a/searx/engines/__builtins__.pyi b/searx/engines/__builtins__.pyiindex d8b2f71b3..e16ae48ce 100644--- a/searx/engines/__builtins__.pyi+++ b/searx/engines/__builtins__.pyi@@ -10,7 +10,6 @@ intended monkey patching of the engine modules.engine modules aren't converted to an engine class, these builtin types willstill be needed."""-from __future__ import annotationsimport loggingfrom searx.enginelib import traits as _traitsdiff --git a/searx/engines/__init__.py b/searx/engines/__init__.pyindex 839c10a5c..b1e24aea2 100644--- a/searx/engines/__init__.py+++ b/searx/engines/__init__.py@@ -8,7 +8,6 @@ usage::"""-from __future__ import annotationsimport typing as timport sysdiff --git a/searx/engines/adobe_stock.py b/searx/engines/adobe_stock.pyindex 57c0263be..c6870a7e5 100644--- a/searx/engines/adobe_stock.py+++ b/searx/engines/adobe_stock.py@@ -35,7 +35,6 @@ Implementation=============="""-from __future__ import annotationsfrom datetime import datetime, timedeltafrom urllib.parse import urlencodediff --git a/searx/engines/github_code.py b/searx/engines/github_code.pyindex 55060b8de..0a2d26699 100644--- a/searx/engines/github_code.py+++ b/searx/engines/github_code.py@@ -65,7 +65,6 @@ code lines are just relabeled (starting from 1) and appended (a disjoint set ofcode blocks in a single file might be returned from the API)."""-from __future__ import annotationsimport typing as tfrom urllib.parse import urlencodediff --git a/searx/engines/google_videos.py b/searx/engines/google_videos.pyindex 53112b27d..750f0dd69 100644--- a/searx/engines/google_videos.py+++ b/searx/engines/google_videos.py@@ -11,7 +11,6 @@.. _data URLs:https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs"""-from __future__ import annotationsfrom urllib.parse import urlencode, urlparse, parse_qsfrom lxml import htmldiff --git a/searx/engines/invidious.py b/searx/engines/invidious.pyindex d51c371d0..817c1d4ab 100644--- a/searx/engines/invidious.py+++ b/searx/engines/invidious.py@@ -7,7 +7,6 @@ No public instance offer a public API now- https://github.com/searxng/searxng/issues/2722#issuecomment-2884993248"""-from __future__ import annotationsimport timeimport randomdiff --git a/searx/engines/marginalia.py b/searx/engines/marginalia.pyindex 63f411cf0..5efc1158b 100644--- a/searx/engines/marginalia.py+++ b/searx/engines/marginalia.py@@ -26,7 +26,6 @@ Implementations==============="""-from __future__ import annotationsimport typing as tfrom urllib.parse import urlencode, quote_plusdiff --git a/searx/engines/mongodb.py b/searx/engines/mongodb.pyindex b6aef3dbd..a183cc17f 100644--- a/searx/engines/mongodb.py+++ b/searx/engines/mongodb.py@@ -37,7 +37,6 @@ Implementations==============="""-from __future__ import annotationsimport rediff --git a/searx/engines/openalex.py b/searx/engines/openalex.pyindex c7bb6839b..3443425f0 100644--- a/searx/engines/openalex.py+++ b/searx/engines/openalex.py@@ -3,7 +3,6 @@## Engine is documented in: docs/dev/engines/online/openalex.rst-from __future__ import annotationsimport typing as tfrom datetime import datetimediff --git a/searx/engines/piped.py b/searx/engines/piped.pyindex 0b7199437..34f0910ba 100644--- a/searx/engines/piped.py+++ b/searx/engines/piped.py@@ -45,7 +45,6 @@ Implementations==============="""-from __future__ import annotationsimport timeimport randomdiff --git a/searx/engines/soundcloud.py b/searx/engines/soundcloud.pyindex 268d00035..b1bb329e1 100644--- a/searx/engines/soundcloud.py+++ b/searx/engines/soundcloud.py@@ -1,6 +1,5 @@# SPDX-License-Identifier: AGPL-3.0-or-later"""SoundCloud is a German audio streaming service."""-from __future__ import annotationsimport reimport datetimediff --git a/searx/engines/tubearchivist.py b/searx/engines/tubearchivist.pyindex 66c14d2bb..c48480204 100644--- a/searx/engines/tubearchivist.py+++ b/searx/engines/tubearchivist.py@@ -74,7 +74,6 @@ Implementations==============="""-from __future__ import annotationsfrom urllib.parse import urlencodefrom dateutil.parser import parsediff --git a/searx/engines/wolframalpha_noapi.py b/searx/engines/wolframalpha_noapi.pyindex 5ac261d12..279d47a3d 100644--- a/searx/engines/wolframalpha_noapi.py+++ b/searx/engines/wolframalpha_noapi.py@@ -3,7 +3,6 @@Wolfram|Alpha (Science)"""-from __future__ import annotationsfrom json import loadsfrom urllib.parse import urlencodediff --git a/searx/engines/yacy.py b/searx/engines/yacy.pyindex 1328f1788..fbd96e333 100644--- a/searx/engines/yacy.py+++ b/searx/engines/yacy.py@@ -51,7 +51,6 @@ Implementations"""# pylint: disable=fixme-from __future__ import annotationsimport randomfrom json import loadsdiff --git a/searx/extended_types.py b/searx/extended_types.pyindex e6b63457a..36efecddc 100644--- a/searx/extended_types.py+++ b/searx/extended_types.py@@ -20,7 +20,6 @@"""# pylint: disable=invalid-name-from __future__ import annotations__all__ = ["SXNG_Request", "sxng_request", "SXNG_Response"]diff --git a/searx/favicons/__init__.py b/searx/favicons/__init__.pyindex 4e0aaaf3e..921cda6a3 100644--- a/searx/favicons/__init__.py+++ b/searx/favicons/__init__.py@@ -8,7 +8,6 @@ an example in which the command line is called in the development environment::(py3) python -m searx.favicons --help"""-from __future__ import annotations__all__ = ["init", "favicon_url", "favicon_proxy"]diff --git a/searx/favicons/config.py b/searx/favicons/config.pyindex 33aa157d6..c22e1f3f0 100644--- a/searx/favicons/config.py+++ b/searx/favicons/config.py@@ -1,7 +1,6 @@# SPDX-License-Identifier: AGPL-3.0-or-later# pylint: disable=missing-module-docstring-from __future__ import annotationsimport pathlibimport msgspecdiff --git a/searx/favicons/proxy.py b/searx/favicons/proxy.pyindex b237bdd72..1346d19b0 100644--- a/searx/favicons/proxy.py+++ b/searx/favicons/proxy.py@@ -1,7 +1,6 @@# SPDX-License-Identifier: AGPL-3.0-or-later"""Implementations for a favicon proxy"""-from __future__ import annotationsfrom typing import Callablediff --git a/searx/favicons/resolvers.py b/searx/favicons/resolvers.pyindex bde5ae2b8..1c9e192b6 100644--- a/searx/favicons/resolvers.py+++ b/searx/favicons/resolvers.py@@ -6,7 +6,6 @@ timeout``) and returns a tuple ``(data, mime)``."""-from __future__ import annotations__all__ = ["DEFAULT_RESOLVER_MAP", "allesedv", "duckduckgo", "google", "yandex"]diff --git a/searx/limiter.py b/searx/limiter.pyindex 3237798f4..e49efd475 100644--- a/searx/limiter.py+++ b/searx/limiter.py@@ -92,7 +92,6 @@ Implementation"""-from __future__ import annotationsfrom ipaddress import ip_addressimport sysdiff --git a/searx/locales.py b/searx/locales.pyindex bb22aa0b1..baa2c23eb 100644--- a/searx/locales.py+++ b/searx/locales.py@@ -26,7 +26,6 @@ SearXNG’s locale implementations================================"""-from __future__ import annotationsimport typing as tfrom pathlib import Pathdiff --git a/searx/plugins/__init__.py b/searx/plugins/__init__.pyindex 4eacf52bd..0779f8db1 100644--- a/searx/plugins/__init__.py+++ b/searx/plugins/__init__.py@@ -94,7 +94,6 @@ Implementation:members:"""-from __future__ import annotations__all__ = ["PluginInfo", "Plugin", "PluginStorage", "PluginCfg"]diff --git a/searx/plugins/_core.py b/searx/plugins/_core.pyindex 9b194a9eb..ef8e5cf46 100644--- a/searx/plugins/_core.py+++ b/searx/plugins/_core.py@@ -1,7 +1,6 @@# SPDX-License-Identifier: AGPL-3.0-or-later# pylint: disable=too-few-public-methods,missing-module-docstring-from __future__ import annotations__all__ = ["PluginInfo", "Plugin", "PluginCfg", "PluginStorage"]diff --git a/searx/plugins/calculator.py b/searx/plugins/calculator.pyindex 428f734c1..4e318a1e6 100644--- a/searx/plugins/calculator.py+++ b/searx/plugins/calculator.py@@ -1,7 +1,6 @@# SPDX-License-Identifier: AGPL-3.0-or-later"""Calculate mathematical expressions using :py:obj:`ast.parse` (mode="eval")."""-from __future__ import annotationsimport typingimport astdiff --git a/searx/plugins/hash_plugin.py b/searx/plugins/hash_plugin.pyindex fb6f7be7c..b733bccf7 100644--- a/searx/plugins/hash_plugin.py+++ b/searx/plugins/hash_plugin.py@@ -1,6 +1,5 @@# SPDX-License-Identifier: AGPL-3.0-or-later# pylint: disable=missing-module-docstring, missing-class-docstring-from __future__ import annotationsimport typingimport rediff --git a/searx/plugins/oa_doi_rewrite.py b/searx/plugins/oa_doi_rewrite.pyindex dac60d298..46dfa210c 100644--- a/searx/plugins/oa_doi_rewrite.py+++ b/searx/plugins/oa_doi_rewrite.py@@ -1,6 +1,5 @@# SPDX-License-Identifier: AGPL-3.0-or-later# pylint: disable=missing-module-docstring-from __future__ import annotationsimport typingimport rediff --git a/searx/plugins/self_info.py b/searx/plugins/self_info.pyindex 1c51049a5..314cc858e 100644--- a/searx/plugins/self_info.py+++ b/searx/plugins/self_info.py@@ -1,6 +1,5 @@# SPDX-License-Identifier: AGPL-3.0-or-later# pylint: disable=missing-module-docstring, missing-class-docstring-from __future__ import annotationsimport typingimport rediff --git a/searx/plugins/tor_check.py b/searx/plugins/tor_check.pyindex 93506ff5a..a3d6e17a7 100644--- a/searx/plugins/tor_check.py+++ b/searx/plugins/tor_check.py@@ -4,7 +4,6 @@ user searches for ``tor-check``. It fetches the tor exit node list from:py:obj:`url_exit_list` and parses all the IPs into a list, then checks if theuser's IP address is in it."""-from __future__ import annotationsfrom ipaddress import ip_addressimport typingdiff --git a/searx/plugins/unit_converter.py b/searx/plugins/unit_converter.pyindex 8cefd1760..20d0c5e74 100644--- a/searx/plugins/unit_converter.py+++ b/searx/plugins/unit_converter.py@@ -8,7 +8,6 @@ converters, each converter is one item in the list (compareof measurement are evaluated. The weighting in the evaluation results from thesorting of the :py:obj:`list of unit converters<symbol_to_si>`."""-from __future__ import annotationsimport typingimport reimport babel.numbersdiff --git a/searx/preferences.py b/searx/preferences.pyindex 42dbe4702..e6d09b14f 100644--- a/searx/preferences.py+++ b/searx/preferences.py@@ -1,7 +1,6 @@# SPDX-License-Identifier: AGPL-3.0-or-later"""Searx preferences implementation."""-from __future__ import annotations# pylint: disable=useless-object-inheritancediff --git a/searx/query.py b/searx/query.pyindex 770fad664..6518e66c1 100644--- a/searx/query.py+++ b/searx/query.py@@ -1,7 +1,6 @@# SPDX-License-Identifier: AGPL-3.0-or-later# pylint: disable=invalid-name, missing-module-docstring, missing-class-docstring-from __future__ import annotationsfrom abc import abstractmethod, ABCimport rediff --git a/searx/result_types/__init__.py b/searx/result_types/__init__.pyindex 22316b172..c8b8eb4f4 100644--- a/searx/result_types/__init__.py+++ b/searx/result_types/__init__.py@@ -11,7 +11,6 @@"""# pylint: disable=too-few-public-methods-from __future__ import annotations__all__ = ["Result",diff --git a/searx/result_types/answer.py b/searx/result_types/answer.pyindex 2946a27bc..1a24f12f1 100644--- a/searx/result_types/answer.py+++ b/searx/result_types/answer.py@@ -28,7 +28,6 @@ template."""# pylint: disable=too-few-public-methods-from __future__ import annotations__all__ = ["AnswerSet", "Answer", "Translations", "WeatherAnswer"]diff --git a/searx/result_types/keyvalue.py b/searx/result_types/keyvalue.pyindex 12efccc4b..33718e7c2 100644--- a/searx/result_types/keyvalue.py+++ b/searx/result_types/keyvalue.py@@ -13,7 +13,6 @@ template."""# pylint: disable=too-few-public-methods-from __future__ import annotations__all__ = ["KeyValue"]diff --git a/searx/settings_loader.py b/searx/settings_loader.pyindex 442bc2a6d..e509ff58a 100644--- a/searx/settings_loader.py+++ b/searx/settings_loader.py@@ -17,7 +17,6 @@ to be loaded. The rules used for this can be found in the"""-from __future__ import annotationsimport typing as timport os.pathfrom collections.abc import MutableMappingdiff --git a/searx/sqlitedb.py b/searx/sqlitedb.pyindex 6d495c207..57c65aac6 100644--- a/searx/sqlitedb.py+++ b/searx/sqlitedb.py@@ -19,7 +19,6 @@ Examplarical implementations based on :py:obj:`SQLiteAppl`:----"""-from __future__ import annotationsimport typing as timport abcdiff --git a/searx/utils.py b/searx/utils.pyindex 7196f53e4..4d826bb34 100644--- a/searx/utils.py+++ b/searx/utils.py@@ -1,7 +1,6 @@# SPDX-License-Identifier: AGPL-3.0-or-later"""Utility functions for the engines"""-from __future__ import annotationsimport reimport importlibdiff --git a/searx/valkeydb.py b/searx/valkeydb.pyindex 3a7be1fd9..1cdc8d270 100644--- a/searx/valkeydb.py+++ b/searx/valkeydb.py@@ -17,7 +17,6 @@ A valkey DB connect can be tested by::>>>"""-from __future__ import annotationsimport osimport pwddiff --git a/searx/weather.py b/searx/weather.pyindex a57a60b51..e5cb92bed 100644--- a/searx/weather.py+++ b/searx/weather.py@@ -1,7 +1,6 @@# SPDX-License-Identifier: AGPL-3.0-or-later"""Implementations used for weather conditions and forecast."""# pylint: disable=too-few-public-methods-from __future__ import annotations__all__ = ["symbol_url",diff --git a/searx/webapp.py b/searx/webapp.pyindex 9b590eeab..4be087a09 100755--- a/searx/webapp.py+++ b/searx/webapp.py@@ -2,7 +2,6 @@# SPDX-License-Identifier: AGPL-3.0-or-later"""WebApp"""# pylint: disable=use-dict-literal-from __future__ import annotationsimport jsonimport osdiff --git a/searx/webutils.py b/searx/webutils.pyindex 8e5ac847c..e025c6b47 100644--- a/searx/webutils.py+++ b/searx/webutils.py@@ -1,7 +1,6 @@# SPDX-License-Identifier: AGPL-3.0-or-later# pylint: disable=missing-module-docstring, invalid-name-from __future__ import annotationsimport osimport pathlibdiff --git a/searx/wikidata_units.py b/searx/wikidata_units.pyindex b05ded220..821476b80 100644--- a/searx/wikidata_units.py+++ b/searx/wikidata_units.py@@ -5,7 +5,6 @@ Coordinates`_.. _SPARQL/WIKIDATA Precision, Units and Coordinates:https://en.wikibooks.org/wiki/SPARQL/WIKIDATA_Precision,_Units_and_Coordinates#Quantities"""-from __future__ import annotations__all__ = ["convert_from_si", "convert_to_si", "symbol_to_si"]diff --git a/searxng_extra/update/update_locales.py b/searxng_extra/update/update_locales.pyindex ef7a91263..f7bfedee1 100755--- a/searxng_extra/update/update_locales.py+++ b/searxng_extra/update/update_locales.py@@ -7,7 +7,6 @@- :py:obj:`searx.locales.LOCALE_NAMES`"""# pylint: disable=invalid-name-from __future__ import annotationsfrom typing import Setimport jsondiff --git a/tests/unit/test_locales.py b/tests/unit/test_locales.pyindex 34b721806..d08f27fdc 100644--- a/tests/unit/test_locales.py+++ b/tests/unit/test_locales.py@@ -3,7 +3,6 @@"""Test some code from module :py:obj:`searx.locales`"""-from __future__ import annotationsfrom parameterized import parameterizedfrom searx import localesfrom searx.sxng_locales import sxng_locales