Revert "[fix:py3.14] Struct fields aren't discovered in Python 3.14"

This reverts commit 8fdc59a760.
This commit is contained in:
Markus Heiser
2025-11-28 12:34:49 +01:00
committed by Markus Heiser
parent 673c29efeb
commit 20de10df4e
10 changed files with 4 additions and 41 deletions

View File

@@ -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