[chore] add DeprecationWarning for obsolete engine.about.language property (#6265)

The old property should still be supported for a transitional period; the
reasons for this can be seen from the discussion in [1] / the further procedure
is also discussed there.

[1] https://github.com/searxng/searxng/issues/6261

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser
2026-06-16 10:31:21 +02:00
committed by GitHub
parent cf1410af8d
commit 4fb49b4498
2 changed files with 19 additions and 1 deletions
+4
View File
@@ -220,6 +220,10 @@ class EngineAbout(msgspec.Struct, kw_only=True):
is available via a :py:obj:`EngineAbout.wikidata_id`.
"""
language: str = ""
"""Deprecated! Migrate your setting from `engine.about.language` to
`engine.language`"""
class Engine(abc.ABC): # pylint: disable=too-few-public-methods
"""Class of engine instances build from YAML settings.