forked from pool/python-typing_extensions
Compare commits
12 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 9cc10dce90 | |||
| b08e2cf75a | |||
| 268094f725 | |||
| 42dbb92993 | |||
| 734689340e | |||
| a23cb0988a | |||
| fdf81fd8ee | |||
| 02bba913c9 | |||
| e1db99fd05 | |||
| 7a68043d34 | |||
| e71ec3240b | |||
| f28f29ee51 |
28
py314-fix-tests.patch
Normal file
28
py314-fix-tests.patch
Normal file
@@ -0,0 +1,28 @@
|
||||
From 16cc1566a6a4b8e729e8b91e1a4e6a31526823a0 Mon Sep 17 00:00:00 2001
|
||||
From: Jelle Zijlstra <jelle.zijlstra@gmail.com>
|
||||
Date: Fri, 19 Sep 2025 07:22:40 -0700
|
||||
Subject: [PATCH] fix test on 3.14 (#683)
|
||||
|
||||
---
|
||||
src/test_typing_extensions.py | 8 ++++++--
|
||||
1 file changed, 6 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/test_typing_extensions.py b/src/test_typing_extensions.py
|
||||
index 27f4059c..f07e1eb0 100644
|
||||
--- a/src/test_typing_extensions.py
|
||||
+++ b/src/test_typing_extensions.py
|
||||
@@ -4508,8 +4508,12 @@ def _make_td(future, class_name, annos, base, extra_names=None):
|
||||
child = _make_td(
|
||||
child_future, "Child", {"child": "int"}, "Base", {"Base": base}
|
||||
)
|
||||
- base_anno = typing.ForwardRef("int", module="builtins") if base_future else int
|
||||
- child_anno = typing.ForwardRef("int", module="builtins") if child_future else int
|
||||
+ if sys.version_info >= (3, 14):
|
||||
+ base_anno = typing.ForwardRef("int", module="builtins", owner=base) if base_future else int
|
||||
+ child_anno = typing.ForwardRef("int", module="builtins", owner=child) if child_future else int
|
||||
+ else:
|
||||
+ base_anno = typing.ForwardRef("int", module="builtins") if base_future else int
|
||||
+ child_anno = typing.ForwardRef("int", module="builtins") if child_future else int
|
||||
self.assertEqual(base.__annotations__, {'base': base_anno})
|
||||
self.assertEqual(
|
||||
child.__annotations__, {'child': child_anno, 'base': base_anno}
|
||||
@@ -1,3 +1,17 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 1 20:52:46 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- add py314-fix-tests.patch to fix tests with python 3.14
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 11 09:45:29 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Update to 4.15.0
|
||||
* Add the @typing_extensions.disjoint_base decorator, as specified in PEP 800.
|
||||
* Add typing_extensions.type_repr, a backport of annotationlib.type_repr,
|
||||
introduced in Python 3.14.
|
||||
* Fix behavior of type params in typing_extensions.evaluate_forward_ref.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 18 16:11:33 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-typing_extensions
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -27,12 +27,13 @@
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-typing_extensions%{psuffix}
|
||||
Version: 4.14.1
|
||||
Version: 4.15.0
|
||||
Release: 0
|
||||
Summary: Backported and Experimental Type Hints for Python 3.8+
|
||||
License: Python-2.0
|
||||
URL: https://github.com/python/typing_extensions
|
||||
Source0: https://files.pythonhosted.org/packages/source/t/typing_extensions/typing_extensions-%{version}.tar.gz
|
||||
Patch1: py314-fix-tests.patch
|
||||
BuildRequires: %{python_module base >= 3.9}
|
||||
BuildRequires: %{python_module flit-core >= 3.4 with %python-flit-core < 4}
|
||||
BuildRequires: %{python_module pip}
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:38b39f4aeeab64884ce9f74c94263ef78f3c22467c8724005483154c26648d36
|
||||
size 107673
|
||||
3
typing_extensions-4.15.0.tar.gz
Normal file
3
typing_extensions-4.15.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466
|
||||
size 109391
|
||||
Reference in New Issue
Block a user