From 20de10df4eb02f228512604ed1db092eaa08ec3e Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Fri, 28 Nov 2025 12:34:49 +0100 Subject: Revert "[fix:py3.14] Struct fields aren't discovered in Python 3.14" This reverts commit 8fdc59a7604cd661638586ff0381530da86eb76c. --- searx/weather.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'searx/weather.py') diff --git a/searx/weather.py b/searx/weather.py index 5627cd0db..a5832410d 100644 --- a/searx/weather.py +++ b/searx/weather.py @@ -2,15 +2,6 @@ """Implementations used for weather conditions and forecast.""" # pylint: disable=too-few-public-methods -# Struct fields aren't discovered in Python 3.14 -# - https://github.com/searxng/searxng/issues/5284 -from __future__ import annotations - -# msgspec: note that if using PEP 563 “postponed evaluation of annotations” -# (e.g. from __future__ import annotations) only the following spellings will -# work: https://jcristharif.com/msgspec/structs.html#class-variables -from typing import ClassVar - __all__ = [ "symbol_url", "Temperature", @@ -23,6 +14,10 @@ __all__ = [ "GeoLocation", ] +# msgspec: note that if using PEP 563 “postponed evaluation of annotations” +# (e.g. from __future__ import annotations) only the following spellings will +# work: https://jcristharif.com/msgspec/structs.html#class-variables +from typing import ClassVar import typing as t import base64 -- cgit v1.2.3