15
0

- Add patch support-python314.patch:

* Do not attempt to query annotation internals.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-frozenlist?expand=0&rev=28
This commit is contained in:
2026-01-23 02:07:30 +00:00
committed by Git OBS Bridge
commit ac5f412627
9 changed files with 355 additions and 0 deletions

14
support-python314.patch Normal file
View File

@@ -0,0 +1,14 @@
Index: frozenlist-1.8.0/tests/test_frozenlist.py
===================================================================
--- frozenlist-1.8.0.orig/tests/test_frozenlist.py
+++ frozenlist-1.8.0/tests/test_frozenlist.py
@@ -29,6 +29,9 @@ class FrozenListMixin:
for name in set(dir(MutableSequence)) - self.SKIP_METHODS:
if name.startswith("_") and not name.endswith("_"):
continue
+ # Do not check annotation internals
+ if name in ("__annotations_cache__", "__annotate_func__"):
+ continue
assert hasattr(self.FrozenList, name)
def test_ctor_default(self) -> None: