summaryrefslogtreecommitdiff
path: root/searx/weather.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2025-11-28 12:34:49 +0100
committerMarkus Heiser <markus.heiser@darmarIT.de>2025-11-28 13:38:37 +0100
commit20de10df4eb02f228512604ed1db092eaa08ec3e (patch)
tree042d8c56599b654a3ce10958acd6284d76a18cac /searx/weather.py
parent673c29efeb905855f121c70ce7fafada5f1b7587 (diff)
Revert "[fix:py3.14] Struct fields aren't discovered in Python 3.14"
This reverts commit 8fdc59a7604cd661638586ff0381530da86eb76c.
Diffstat (limited to 'searx/weather.py')
-rw-r--r--searx/weather.py13
1 files changed, 4 insertions, 9 deletions
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