14
0

12 Commits

Author SHA256 Message Date
9cc10dce90 Accepting request 1320781 from devel:languages:python
- add py314-fix-tests.patch to fix tests with python 3.14

OBS-URL: https://build.opensuse.org/request/show/1320781
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typing_extensions?expand=0&rev=32
2025-12-09 11:46:11 +00:00
b08e2cf75a - add py314-fix-tests.patch to fix tests with python 3.14
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typing_extensions?expand=0&rev=70
2025-12-01 20:53:04 +00:00
268094f725 Accepting request 1304240 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1304240
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typing_extensions?expand=0&rev=31
2025-09-12 19:09:24 +00:00
42dbb92993 - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typing_extensions?expand=0&rev=68
2025-09-12 08:09:32 +00:00
734689340e Accepting request 1294417 from devel:languages:python
- update to 4.14.1:
  * Fix usage of `typing_extensions.TypedDict` nested inside
    other types (e.g., `typing.Type[typing_extensions.TypedDict]`).
    This is not allowed by the type system but worked on older
    versions, so we maintain support.

    with `@typing_extensions.deprecated`.

OBS-URL: https://build.opensuse.org/request/show/1294417
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typing_extensions?expand=0&rev=30
2025-07-21 17:58:36 +00:00
a23cb0988a - update to 4.14.1:
* Fix usage of `typing_extensions.TypedDict` nested inside
    other types (e.g., `typing.Type[typing_extensions.TypedDict]`).
    This is not allowed by the type system but worked on older
    versions, so we maintain support.
    with `@typing_extensions.deprecated`.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typing_extensions?expand=0&rev=66
2025-07-18 16:12:00 +00:00
fdf81fd8ee Accepting request 1291658 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1291658
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typing_extensions?expand=0&rev=29
2025-07-10 21:15:00 +00:00
02bba913c9 - Update to 4.14.0
* Remove `__or__` and `__ror__` methods from `typing_extensions.Sentinel`
    on Python versions <3.10. PEP 604 was introduced in Python 3.10, and
    `typing_extensions` does not generally attempt to backport PEP-604 methods
    to prior versions.
  * Further update `typing_extensions.evaluate_forward_ref` with changes in Python 3.14.
- from version 4.14.0rc1
  * Drop support for Python 3.8 (including PyPy-3.8). Patch by Victorien Plot.
  * Do not attempt to re-export names that have been removed from `typing`,
    anticipating the removal of `typing.no_type_check_decorator` in Python 3.15.
    Patch by Jelle Zijlstra.
  * Update `typing_extensions.Format`, `typing_extensions.evaluate_forward_ref`, and
    `typing_extensions.TypedDict` to align
    with changes in Python 3.14. Patches by Jelle Zijlstra.
  * Fix tests for Python 3.14 and 3.15. Patches by Jelle Zijlstra.
  * Add support for inline typed dictionaries (PEP 764).
    Patch by [Victorien Plot](https://github.com/Viicos).
  * Add `typing_extensions.Reader` and `typing_extensions.Writer`. Patch by
    Sebastian Rittau.
  * Add support for sentinels (PEP 661). Patch by Victorien Plot.
- Update BuildRequires from pyproject.toml

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typing_extensions?expand=0&rev=64
2025-07-10 10:41:50 +00:00
e1db99fd05 Accepting request 1278841 from devel:languages:python
Forwarded request #1278677 from glaubitz

- Update to 4.13.2
    * Fix `TypeError` when taking the union of `typing_extensions.TypeAliasType`
      and a `typing.TypeAliasType` on Python 3.12 and 3.13.
    * Backport from CPython PR #132160) to avoid having user arguments
      shadowed in generated `__new__` by `@typing_extensions.deprecated`.
  - from version 4.13.1
    * Fix regression in 4.13.0 on Python 3.10.2 causing a `TypeError` when
      using `Concatenate`.
    * Fix `TypeError` when using `evaluate_forward_ref` on Python 3.10.1-2
      and 3.9.8-10.

OBS-URL: https://build.opensuse.org/request/show/1278841
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typing_extensions?expand=0&rev=28
2025-05-23 12:27:37 +00:00
7a68043d34 Accepting request 1278677 from home:glaubitz:branches:devel:languages:python
- Update to 4.13.2
  * Fix `TypeError` when taking the union of `typing_extensions.TypeAliasType`
    and a `typing.TypeAliasType` on Python 3.12 and 3.13.
  * Backport from CPython PR #132160) to avoid having user arguments
    shadowed in generated `__new__` by `@typing_extensions.deprecated`.
- from version 4.13.1
  * Fix regression in 4.13.0 on Python 3.10.2 causing a `TypeError` when
    using `Concatenate`.
  * Fix `TypeError` when using `evaluate_forward_ref` on Python 3.10.1-2
    and 3.9.8-10.

OBS-URL: https://build.opensuse.org/request/show/1278677
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typing_extensions?expand=0&rev=62
2025-05-20 14:44:18 +00:00
e71ec3240b Accepting request 1265375 from devel:languages:python
- update to 4.13.0:
  * Add `typing_extensions.TypeForm` from PEP 747.
  * Add `typing_extensions.get_annotations`, a backport of
  * `inspect.get_annotations` that adds features specified
  * by PEP 649.
  * Backport `evaluate_forward_ref` from CPython
  * Update PEP 728 implementation to a newer version of the PEP.
  * Copy the coroutine status of functions and methods wrapped
    with `@typing_extensions.deprecated`. 
  * Fix bug where `TypeAliasType` instances could be subscripted
    even where they were not generic.
  * Fix bug where a subscripted `TypeAliasType` instance did not
    have all attributes of the original `TypeAliasType` instance
    on older Python versions.
  * Fix bug where subscripted `TypeAliasType` instances (and some
    other subscripted objects) had wrong parameters if they were
    directly subscripted with an `Unpack` object.

OBS-URL: https://build.opensuse.org/request/show/1265375
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typing_extensions?expand=0&rev=27
2025-04-16 18:37:04 +00:00
f28f29ee51 - update to 4.13.0:
* Add `typing_extensions.TypeForm` from PEP 747.
  * Add `typing_extensions.get_annotations`, a backport of
  * `inspect.get_annotations` that adds features specified
  * by PEP 649.
  * Backport `evaluate_forward_ref` from CPython
  * Update PEP 728 implementation to a newer version of the PEP.
  * Copy the coroutine status of functions and methods wrapped
    with `@typing_extensions.deprecated`. 
  * Fix bug where `TypeAliasType` instances could be subscripted
    even where they were not generic.
  * Fix bug where a subscripted `TypeAliasType` instance did not
    have all attributes of the original `TypeAliasType` instance
    on older Python versions.
  * Fix bug where subscripted `TypeAliasType` instances (and some
    other subscripted objects) had wrong parameters if they were
    directly subscripted with an `Unpack` object.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typing_extensions?expand=0&rev=60
2025-03-29 09:48:10 +00:00
5 changed files with 118 additions and 6 deletions

28
py314-fix-tests.patch Normal file
View 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}

View File

@@ -1,3 +1,86 @@
-------------------------------------------------------------------
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>
- update to 4.14.1:
* Fix usage of `typing_extensions.TypedDict` nested inside
other types (e.g., `typing.Type[typing_extensions.TypedDict]`).
This is not allowed by the type system but worked on older
versions, so we maintain support.
-------------------------------------------------------------------
Thu Jul 10 10:39:18 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 4.14.0
* Remove `__or__` and `__ror__` methods from `typing_extensions.Sentinel`
on Python versions <3.10. PEP 604 was introduced in Python 3.10, and
`typing_extensions` does not generally attempt to backport PEP-604 methods
to prior versions.
* Further update `typing_extensions.evaluate_forward_ref` with changes in Python 3.14.
- from version 4.14.0rc1
* Drop support for Python 3.8 (including PyPy-3.8). Patch by Victorien Plot.
* Do not attempt to re-export names that have been removed from `typing`,
anticipating the removal of `typing.no_type_check_decorator` in Python 3.15.
Patch by Jelle Zijlstra.
* Update `typing_extensions.Format`, `typing_extensions.evaluate_forward_ref`, and
`typing_extensions.TypedDict` to align
with changes in Python 3.14. Patches by Jelle Zijlstra.
* Fix tests for Python 3.14 and 3.15. Patches by Jelle Zijlstra.
* Add support for inline typed dictionaries (PEP 764).
Patch by [Victorien Plot](https://github.com/Viicos).
* Add `typing_extensions.Reader` and `typing_extensions.Writer`. Patch by
Sebastian Rittau.
* Add support for sentinels (PEP 661). Patch by Victorien Plot.
- Update BuildRequires from pyproject.toml
-------------------------------------------------------------------
Tue May 20 11:34:03 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 4.13.2
* Fix `TypeError` when taking the union of `typing_extensions.TypeAliasType`
and a `typing.TypeAliasType` on Python 3.12 and 3.13.
* Backport from CPython PR #132160) to avoid having user arguments
shadowed in generated `__new__` by `@typing_extensions.deprecated`.
- from version 4.13.1
* Fix regression in 4.13.0 on Python 3.10.2 causing a `TypeError` when
using `Concatenate`.
* Fix `TypeError` when using `evaluate_forward_ref` on Python 3.10.1-2
and 3.9.8-10.
-------------------------------------------------------------------
Sat Mar 29 09:46:25 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 4.13.0:
* Add `typing_extensions.TypeForm` from PEP 747.
* Add `typing_extensions.get_annotations`, a backport of
* `inspect.get_annotations` that adds features specified
* by PEP 649.
* Backport `evaluate_forward_ref` from CPython
* Update PEP 728 implementation to a newer version of the PEP.
* Copy the coroutine status of functions and methods wrapped
with `@typing_extensions.deprecated`.
* Fix bug where `TypeAliasType` instances could be subscripted
even where they were not generic.
* Fix bug where a subscripted `TypeAliasType` instance did not
have all attributes of the original `TypeAliasType` instance
on older Python versions.
* Fix bug where subscripted `TypeAliasType` instances (and some
other subscripted objects) had wrong parameters if they were
directly subscripted with an `Unpack` object.
-------------------------------------------------------------------
Sat Jun 8 13:12:02 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-typing_extensions
#
# Copyright (c) 2024 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,13 +27,14 @@
%{?sle15_python_module_pythons}
Name: python-typing_extensions%{psuffix}
Version: 4.12.2
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
BuildRequires: %{python_module base >= 3.8}
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}
BuildRequires: fdupes

Binary file not shown.

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466
size 109391