diff --git a/searx/answerers/__init__.py b/searx/answerers/__init__.py index 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.py index 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 annotations import abc import importlib diff --git a/searx/answerers/random.py b/searx/answerers/random.py index 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 annotations import hashlib import random diff --git a/searx/answerers/statistics.py b/searx/answerers/statistics.py index 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 reduce from operator import mul diff --git a/searx/botdetection/__init__.py b/searx/botdetection/__init__.py index 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.py index 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.py index 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 on structured dictionaries. The configuration schema is defined in a dictionary structure and the configuration data is given in a dictionary structure. """ -from __future__ import annotations + import typing import copy diff --git a/searx/botdetection/http_accept.py b/searx/botdetection/http_accept.py index 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.py index 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.py index 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.py index 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.py index 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.py index 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 re from ipaddress import ( IPv4Network, diff --git a/searx/botdetection/ip_limit.py b/searx/botdetection/ip_limit.py index 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.py index 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 ` and """ # pylint: disable=unused-argument -from __future__ import annotations + from typing import Tuple from ipaddress import ( ip_network, diff --git a/searx/botdetection/link_token.py b/searx/botdetection/link_token.py index 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 of 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/trusted_proxies.py b/searx/botdetection/trusted_proxies.py index 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 t from collections import abc diff --git a/searx/botdetection/valkeydb.py b/searx/botdetection/valkeydb.py index 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 annotations import valkey diff --git a/searx/cache.py b/searx/cache.py index 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 abc diff --git a/searx/data/core.py b/searx/data/core.py index 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 pathlib diff --git a/searx/data/currencies.py b/searx/data/currencies.py index 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.py index 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 annotations import typing __all__ = ["TrackerPatternsDB"] diff --git a/searx/enginelib/traits.py b/searx/enginelib/traits.py index 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 be used. """ -from __future__ import annotations import os import json diff --git a/searx/engines/__builtins__.pyi b/searx/engines/__builtins__.pyi index 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 will still be needed. """ -from __future__ import annotations import logging from searx.enginelib import traits as _traits diff --git a/searx/engines/__init__.py b/searx/engines/__init__.py index 839c10a5c..b1e24aea2 100644 --- a/searx/engines/__init__.py +++ b/searx/engines/__init__.py @@ -8,7 +8,6 @@ usage:: """ -from __future__ import annotations import typing as t import sys diff --git a/searx/engines/adobe_stock.py b/searx/engines/adobe_stock.py index 57c0263be..c6870a7e5 100644 --- a/searx/engines/adobe_stock.py +++ b/searx/engines/adobe_stock.py @@ -35,7 +35,6 @@ Implementation ============== """ -from __future__ import annotations from datetime import datetime, timedelta from urllib.parse import urlencode diff --git a/searx/engines/github_code.py b/searx/engines/github_code.py index 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 of code blocks in a single file might be returned from the API). """ -from __future__ import annotations import typing as t from urllib.parse import urlencode diff --git a/searx/engines/google_videos.py b/searx/engines/google_videos.py index 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 annotations from urllib.parse import urlencode, urlparse, parse_qs from lxml import html diff --git a/searx/engines/invidious.py b/searx/engines/invidious.py index 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 annotations import time import random diff --git a/searx/engines/marginalia.py b/searx/engines/marginalia.py index 63f411cf0..5efc1158b 100644 --- a/searx/engines/marginalia.py +++ b/searx/engines/marginalia.py @@ -26,7 +26,6 @@ Implementations =============== """ -from __future__ import annotations import typing as t from urllib.parse import urlencode, quote_plus diff --git a/searx/engines/mongodb.py b/searx/engines/mongodb.py index b6aef3dbd..a183cc17f 100644 --- a/searx/engines/mongodb.py +++ b/searx/engines/mongodb.py @@ -37,7 +37,6 @@ Implementations =============== """ -from __future__ import annotations import re diff --git a/searx/engines/openalex.py b/searx/engines/openalex.py index 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 annotations import typing as t from datetime import datetime diff --git a/searx/engines/piped.py b/searx/engines/piped.py index 0b7199437..34f0910ba 100644 --- a/searx/engines/piped.py +++ b/searx/engines/piped.py @@ -45,7 +45,6 @@ Implementations =============== """ -from __future__ import annotations import time import random diff --git a/searx/engines/soundcloud.py b/searx/engines/soundcloud.py index 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 annotations import re import datetime diff --git a/searx/engines/tubearchivist.py b/searx/engines/tubearchivist.py index 66c14d2bb..c48480204 100644 --- a/searx/engines/tubearchivist.py +++ b/searx/engines/tubearchivist.py @@ -74,7 +74,6 @@ Implementations =============== """ -from __future__ import annotations from urllib.parse import urlencode from dateutil.parser import parse diff --git a/searx/engines/wolframalpha_noapi.py b/searx/engines/wolframalpha_noapi.py index 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 annotations from json import loads from urllib.parse import urlencode diff --git a/searx/engines/yacy.py b/searx/engines/yacy.py index 1328f1788..fbd96e333 100644 --- a/searx/engines/yacy.py +++ b/searx/engines/yacy.py @@ -51,7 +51,6 @@ Implementations """ # pylint: disable=fixme -from __future__ import annotations import random from json import loads diff --git a/searx/extended_types.py b/searx/extended_types.py index 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__.py index 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.py index 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 annotations import pathlib import msgspec diff --git a/searx/favicons/proxy.py b/searx/favicons/proxy.py index 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 annotations from typing import Callable diff --git a/searx/favicons/resolvers.py b/searx/favicons/resolvers.py index 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.py index 3237798f4..e49efd475 100644 --- a/searx/limiter.py +++ b/searx/limiter.py @@ -92,7 +92,6 @@ Implementation """ -from __future__ import annotations from ipaddress import ip_address import sys diff --git a/searx/locales.py b/searx/locales.py index bb22aa0b1..baa2c23eb 100644 --- a/searx/locales.py +++ b/searx/locales.py @@ -26,7 +26,6 @@ SearXNG’s locale implementations ================================ """ -from __future__ import annotations import typing as t from pathlib import Path diff --git a/searx/plugins/__init__.py b/searx/plugins/__init__.py index 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.py index 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.py index 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 annotations import typing import ast diff --git a/searx/plugins/hash_plugin.py b/searx/plugins/hash_plugin.py index 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 annotations import typing import re diff --git a/searx/plugins/oa_doi_rewrite.py b/searx/plugins/oa_doi_rewrite.py index 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 annotations import typing import re diff --git a/searx/plugins/self_info.py b/searx/plugins/self_info.py index 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 annotations import typing import re diff --git a/searx/plugins/tor_check.py b/searx/plugins/tor_check.py index 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 the user's IP address is in it. """ -from __future__ import annotations from ipaddress import ip_address import typing diff --git a/searx/plugins/unit_converter.py b/searx/plugins/unit_converter.py index 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 (compare of measurement are evaluated. The weighting in the evaluation results from the sorting of the :py:obj:`list of unit converters`. """ -from __future__ import annotations import typing import re import babel.numbers diff --git a/searx/preferences.py b/searx/preferences.py index 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-inheritance diff --git a/searx/query.py b/searx/query.py index 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 annotations from abc import abstractmethod, ABC import re diff --git a/searx/result_types/__init__.py b/searx/result_types/__init__.py index 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.py index 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.py index 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.py index 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 annotations import typing as t import os.path from collections.abc import MutableMapping diff --git a/searx/sqlitedb.py b/searx/sqlitedb.py index 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 annotations import typing as t import abc diff --git a/searx/utils.py b/searx/utils.py index 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 annotations import re import importlib diff --git a/searx/valkeydb.py b/searx/valkeydb.py index 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 annotations import os import pwd diff --git a/searx/weather.py b/searx/weather.py index 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.py index 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 annotations import json import os diff --git a/searx/webutils.py b/searx/webutils.py index 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 annotations import os import pathlib diff --git a/searx/wikidata_units.py b/searx/wikidata_units.py index 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.py index 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 annotations from typing import Set import json diff --git a/tests/unit/test_locales.py b/tests/unit/test_locales.py index 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 annotations from parameterized import parameterized from searx import locales from searx.sxng_locales import sxng_locales