mirror of
https://github.com/searxng/searxng.git
synced 2025-12-01 18:55:08 -05:00
Revert "[fix:py3.14] Struct fields aren't discovered in Python 3.14"
This reverts commit 8fdc59a7604cd661638586ff0381530da86eb76c.
This commit is contained in:
parent
673c29efeb
commit
20de10df4e
@ -5,10 +5,6 @@
|
|||||||
----
|
----
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# 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"]
|
__all__ = ["ExpireCacheCfg", "ExpireCacheStats", "ExpireCache", "ExpireCacheSQLite"]
|
||||||
|
|
||||||
import abc
|
import abc
|
||||||
|
|||||||
@ -17,10 +17,6 @@
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Struct fields aren't discovered in Python 3.14
|
|
||||||
# - https://github.com/searxng/searxng/issues/5284
|
|
||||||
from __future__ import annotations
|
|
||||||
|
|
||||||
import typing as t
|
import typing as t
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|||||||
@ -1,9 +1,6 @@
|
|||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
# pylint: disable=missing-module-docstring
|
# pylint: disable=missing-module-docstring
|
||||||
|
|
||||||
# Struct fields aren't discovered in Python 3.14
|
|
||||||
# - https://github.com/searxng/searxng/issues/5284
|
|
||||||
from __future__ import annotations
|
|
||||||
|
|
||||||
import pathlib
|
import pathlib
|
||||||
import msgspec
|
import msgspec
|
||||||
|
|||||||
@ -1,9 +1,6 @@
|
|||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
"""Implementations for a favicon proxy"""
|
"""Implementations for a favicon proxy"""
|
||||||
|
|
||||||
# Struct fields aren't discovered in Python 3.14
|
|
||||||
# - https://github.com/searxng/searxng/issues/5284
|
|
||||||
from __future__ import annotations
|
|
||||||
|
|
||||||
from typing import Callable
|
from typing import Callable
|
||||||
|
|
||||||
|
|||||||
@ -16,10 +16,6 @@
|
|||||||
:members:
|
:members:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Struct fields aren't discovered in Python 3.14
|
|
||||||
# - https://github.com/searxng/searxng/issues/5284
|
|
||||||
from __future__ import annotations
|
|
||||||
|
|
||||||
__all__ = ["Result"]
|
__all__ = ["Result"]
|
||||||
|
|
||||||
import typing as t
|
import typing as t
|
||||||
|
|||||||
@ -28,9 +28,6 @@ template.
|
|||||||
"""
|
"""
|
||||||
# pylint: disable=too-few-public-methods
|
# 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
|
|
||||||
|
|
||||||
__all__ = ["AnswerSet", "Answer", "Translations", "WeatherAnswer"]
|
__all__ = ["AnswerSet", "Answer", "Translations", "WeatherAnswer"]
|
||||||
|
|
||||||
|
|||||||
@ -14,10 +14,6 @@ template. For highlighting the code passages, Pygments_ is used.
|
|||||||
"""
|
"""
|
||||||
# pylint: disable=too-few-public-methods, disable=invalid-name
|
# pylint: disable=too-few-public-methods, disable=invalid-name
|
||||||
|
|
||||||
# Struct fields aren't discovered in Python 3.14
|
|
||||||
# - https://github.com/searxng/searxng/issues/5284
|
|
||||||
from __future__ import annotations
|
|
||||||
|
|
||||||
__all__ = ["Code"]
|
__all__ = ["Code"]
|
||||||
|
|
||||||
import typing as t
|
import typing as t
|
||||||
|
|||||||
@ -13,9 +13,6 @@ template.
|
|||||||
"""
|
"""
|
||||||
# pylint: disable=too-few-public-methods
|
# 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
|
|
||||||
|
|
||||||
__all__ = ["KeyValue"]
|
__all__ = ["KeyValue"]
|
||||||
|
|
||||||
|
|||||||
@ -21,10 +21,6 @@ Related topics:
|
|||||||
"""
|
"""
|
||||||
# pylint: disable=too-few-public-methods, disable=invalid-name
|
# pylint: disable=too-few-public-methods, disable=invalid-name
|
||||||
|
|
||||||
# Struct fields aren't discovered in Python 3.14
|
|
||||||
# - https://github.com/searxng/searxng/issues/5284
|
|
||||||
from __future__ import annotations
|
|
||||||
|
|
||||||
__all__ = ["Paper"]
|
__all__ = ["Paper"]
|
||||||
|
|
||||||
import typing as t
|
import typing as t
|
||||||
|
|||||||
@ -2,15 +2,6 @@
|
|||||||
"""Implementations used for weather conditions and forecast."""
|
"""Implementations used for weather conditions and forecast."""
|
||||||
# pylint: disable=too-few-public-methods
|
# 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__ = [
|
__all__ = [
|
||||||
"symbol_url",
|
"symbol_url",
|
||||||
"Temperature",
|
"Temperature",
|
||||||
@ -23,6 +14,10 @@ __all__ = [
|
|||||||
"GeoLocation",
|
"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 typing as t
|
||||||
|
|
||||||
import base64
|
import base64
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user