[packages/python3-typing_extensions] Up to 4.16.0
arekm
arekm at pld-linux.org
Wed Nov 11 01:53:57 CET 2026
commit 9bf9c498764cb318e507986cbd92e3a57e74af23
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Nov 11 01:52:54 2026 +0100
Up to 4.16.0
python3-typing_extensions.spec | 6 ++++--
typing_extensions-literal-dedup-test.patch | 15 +++++++++++++++
2 files changed, 19 insertions(+), 2 deletions(-)
---
diff --git a/python3-typing_extensions.spec b/python3-typing_extensions.spec
index 06cd01a..6058edf 100644
--- a/python3-typing_extensions.spec
+++ b/python3-typing_extensions.spec
@@ -5,13 +5,14 @@
Summary: Backported and Experimental Type Hints for Python 3.7+
Summary(pl.UTF-8): Backportowane i eksperymentalne podpowiedzi typów dla Pythona 3.7+
Name: python3-typing_extensions
-Version: 4.15.0
+Version: 4.16.0
Release: 1
License: PSF
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/typing-extensions/
Source0: https://files.pythonhosted.org/packages/source/t/typing-extensions/typing_extensions-%{version}.tar.gz
-# Source0-md5: 079e529d0b271647f3ec2720aee8fc65
+# Source0-md5: 7758284b826ec6ca6b722e7891bbd10d
+Patch0: typing_extensions-literal-dedup-test.patch
URL: https://pypi.org/project/typing-extensions/
BuildRequires: python3-build
BuildRequires: python3-flit_core >= 3.11
@@ -44,6 +45,7 @@ Moduł typing_extensions służy dwóm celom:
%prep
%setup -q -n typing_extensions-%{version}
+%patch -P0 -p1
%build
%py3_build_pyproject
diff --git a/typing_extensions-literal-dedup-test.patch b/typing_extensions-literal-dedup-test.patch
new file mode 100644
index 0000000..6049df2
--- /dev/null
+++ b/typing_extensions-literal-dedup-test.patch
@@ -0,0 +1,15 @@
+# current CPython typing.Literal deduplicates unhashable arguments too
+# https://github.com/python/typing_extensions/commit/79c903c7d9
+diff --git a/src/test_typing_extensions.py b/src/test_typing_extensions.py
+index 996d466c..938f2acc 100644
+--- a/src/test_typing_extensions.py
++++ b/src/test_typing_extensions.py
+@@ -1337,8 +1337,6 @@ def test_args(self):
+ self.assertEqual(Literal[1, 2, 3].__args__, (1, 2, 3))
+ self.assertEqual(Literal[1, 2, 3, 3].__args__, (1, 2, 3))
+ self.assertEqual(Literal[1, Literal[2], Literal[3, 4]].__args__, (1, 2, 3, 4))
+- # Mutable arguments will not be deduplicated
+- self.assertEqual(Literal[[], []].__args__, ([], []))
+
+ def test_union_of_literals(self):
+ self.assertEqual(Union[Literal[1], Literal[2]].__args__,
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-typing_extensions.git/commitdiff/9bf9c498764cb318e507986cbd92e3a57e74af23
More information about the pld-cvs-commit
mailing list