public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-typing-extensions] f44: Fix for Python 3.15.0a3+
@ 2026-08-25 6:51
0 siblings, 0 replies; only message in thread
From: @ 2026-08-25 6:51 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-typing-extensions
Branch : f44
Commit : 9682b60f0139750eab9c773969157fc82fadebd3
Author : Miro Hrončok <miro@hroncok.cz>
Date : 2026-02-09T18:39:02+01:00
Stats : +108/-1 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/python-typing-extensions/c/9682b60f0139750eab9c773969157fc82fadebd3?branch=f44
Log:
Fix for Python 3.15.0a3+
- Fixes: rhbz#2416981
---
diff --git a/2638b86aad.patch b/2638b86aad.patch
new file mode 100644
index 0000000..dd10644
--- /dev/null
+++ b/2638b86aad.patch
@@ -0,0 +1,30 @@
+From 2638b86aad48a3d25704caac9d7e37368fd87815 Mon Sep 17 00:00:00 2001
+From: Semyon Moroz <donbarbos@proton.me>
+Date: Tue, 18 Nov 2025 23:45:35 +0400
+Subject: [PATCH] Remove `no_type_check_decorator` from `__all__` for Python >=
+ 3.15 (#699)
+
+---
+ src/typing_extensions.py | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/src/typing_extensions.py b/src/typing_extensions.py
+index ca1705e4..9dd8eac4 100644
+--- a/src/typing_extensions.py
++++ b/src/typing_extensions.py
+@@ -148,7 +148,6 @@
+ 'ValuesView',
+ 'cast',
+ 'no_type_check',
+- 'no_type_check_decorator',
+ ]
+
+ # for backward compatibility
+@@ -4312,3 +4311,7 @@ def type_repr(value):
+ Generic = typing.Generic
+ ForwardRef = typing.ForwardRef
+ Annotated = typing.Annotated
++
++# Breakpoint: https://github.com/python/cpython/pull/133602
++if sys.version_info < (3, 15, 0):
++ __all__.append("no_type_check_decorator")
diff --git a/723.patch b/723.patch
new file mode 100644
index 0000000..1588d2d
--- /dev/null
+++ b/723.patch
@@ -0,0 +1,65 @@
+From 9a2c4bc9ceef5d3bcf990856a685dcd7aff77746 Mon Sep 17 00:00:00 2001
+From: Daniel Sperber <github.blurry@9ox.net>
+Date: Wed, 14 Jan 2026 12:06:46 +0100
+Subject: [PATCH 1/2] Remove no_type_check_decorator from _typing_names
+
+---
+ src/typing_extensions.py | 9 ++++-----
+ 1 file changed, 4 insertions(+), 5 deletions(-)
+
+diff --git a/src/typing_extensions.py b/src/typing_extensions.py
+index 9dd8eac4..d0442cea 100644
+--- a/src/typing_extensions.py
++++ b/src/typing_extensions.py
+@@ -4298,11 +4298,14 @@ def type_repr(value):
+ "ValuesView",
+ "cast",
+ "no_type_check",
+- "no_type_check_decorator",
+ # This is private, but it was defined by typing_extensions for a long time
+ # and some users rely on it.
+ "_AnnotatedAlias",
+ ]
++# Breakpoint: https://github.com/python/cpython/pull/133602
++if sys.version_info < (3, 15, 0):
++ _typing_names.append("no_type_check_decorator")
++ __all__.append("no_type_check_decorator")
+ globals().update(
+ {name: getattr(typing, name) for name in _typing_names if hasattr(typing, name)}
+ )
+@@ -4311,7 +4314,3 @@ def type_repr(value):
+ Generic = typing.Generic
+ ForwardRef = typing.ForwardRef
+ Annotated = typing.Annotated
+-
+-# Breakpoint: https://github.com/python/cpython/pull/133602
+-if sys.version_info < (3, 15, 0):
+- __all__.append("no_type_check_decorator")
+
+From adf7fc9e60921e346743dbf3224acb0aeff3090c Mon Sep 17 00:00:00 2001
+From: Daniel Sperber <github.blurry@9ox.net>
+Date: Wed, 14 Jan 2026 12:13:53 +0100
+Subject: [PATCH 2/2] Update src/typing_extensions.py
+
+Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
+---
+ src/typing_extensions.py | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/typing_extensions.py b/src/typing_extensions.py
+index d0442cea..20c331ee 100644
+--- a/src/typing_extensions.py
++++ b/src/typing_extensions.py
+@@ -4302,10 +4302,12 @@ def type_repr(value):
+ # and some users rely on it.
+ "_AnnotatedAlias",
+ ]
++
+ # Breakpoint: https://github.com/python/cpython/pull/133602
+ if sys.version_info < (3, 15, 0):
+ _typing_names.append("no_type_check_decorator")
+ __all__.append("no_type_check_decorator")
++
+ globals().update(
+ {name: getattr(typing, name) for name in _typing_names if hasattr(typing, name)}
+ )
diff --git a/python-typing-extensions.spec b/python-typing-extensions.spec
index 459af87..cc2cb92 100644
--- a/python-typing-extensions.spec
+++ b/python-typing-extensions.spec
@@ -1,6 +1,6 @@
Name: python-typing-extensions
Version: 4.15.0
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Backported and Experimental Type Hints for Python
License: PSF-2.0
@@ -11,6 +11,14 @@ Source: %{pypi_source typing_extensions}
# https://github.com/python/typing_extensions/pull/683
Patch: https://github.com/python/typing_extensions/pull/683.patch
+# Remove no_type_check_decorator from __all__ for Python >= 3.15
+# https://github.com/python/typing_extensions/pull/699
+Patch: https://github.com/python/typing_extensions/commit/2638b86aad.patch
+
+# Remove no_type_check_decorator from _typing_names, followup of the above
+# https://github.com/python/typing_extensions/pull/723
+Patch: https://github.com/python/typing_extensions/pull/723.patch
+
BuildArch: noarch
BuildRequires: python3-devel
@@ -67,6 +75,10 @@ cd src
%changelog
+* Mon Feb 09 2026 Miro Hrončok <mhroncok@redhat.com> - 4.15.0-4
+- Fix for Python 3.15.0a3+
+- Fixes: rhbz#2416981
+
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 4.15.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-25 6:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-25 6:51 [rpms/python-typing-extensions] f44: Fix for Python 3.15.0a3+
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox