From 8fdc59a7604cd661638586ff0381530da86eb76c Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Tue, 7 Oct 2025 15:02:26 +0200 Subject: [fix:py3.14] Struct fields aren't discovered in Python 3.14 This is a temporary workaround for #5284 [1]. However, the problem must be solved at a different level, in msgspec [2]. [1] https://github.com/searxng/searxng/issues/5284 [2] https://github.com/jcrist/msgspec/issues/847 Signed-off-by: Markus Heiser --- searx/cache.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'searx/cache.py') diff --git a/searx/cache.py b/searx/cache.py index ea58c9328..062f34768 100644 --- a/searx/cache.py +++ b/searx/cache.py @@ -5,6 +5,10 @@ ---- """ +# Struct fields aren't discovered in Python 3.14 +# - https://github.com/searxng/searxng/issues/5284 +from __future__ import annotations + __all__ = ["ExpireCacheCfg", "ExpireCacheStats", "ExpireCache", "ExpireCacheSQLite"] import abc -- cgit v1.2.3