* 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
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
- 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
- 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
* 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
- update to 4.12.2:
* Fix regression in v4.12.0 where specialization of certain
* generics with an overridden `__eq__` method would raise
errors.
* Fix tests so they pass on 3.13.0b2
* Preliminary changes for compatibility with the draft
implementation of PEP 649 in Python 3.14.
* Fix regression in v4.12.0 where nested `Annotated` types
would cause `TypeError` to be raised if the nested
`Annotated` type had unhashable metadata.
* Fix incorrect behaviour of `typing_extensions.ParamSpec` on
Python 3.8 and 3.9 that meant that
`isinstance(typing_extensions.ParamSpec("P"),
typing.TypeVar)` would have a different result in some
situations depending on whether or not a profiling
function had been set using `sys.setprofile`.
* This release focuses on compatibility with the upcoming
release of Python 3.13. Most changes are related to the
implementation of type parameter defaults (PEP 696).
OBS-URL: https://build.opensuse.org/request/show/1179515
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typing_extensions?expand=0&rev=26
* Fix regression in v4.12.0 where specialization of certain
* generics with an overridden `__eq__` method would raise
errors.
* Fix tests so they pass on 3.13.0b2
* Preliminary changes for compatibility with the draft
implementation of PEP 649 in Python 3.14.
* Fix regression in v4.12.0 where nested `Annotated` types
would cause `TypeError` to be raised if the nested
`Annotated` type had unhashable metadata.
* Fix incorrect behaviour of `typing_extensions.ParamSpec` on
Python 3.8 and 3.9 that meant that
`isinstance(typing_extensions.ParamSpec("P"),
typing.TypeVar)` would have a different result in some
situations depending on whether or not a profiling
function had been set using `sys.setprofile`.
* This release focuses on compatibility with the upcoming
release of Python 3.13. Most changes are related to the
implementation of type parameter defaults (PEP 696).
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typing_extensions?expand=0&rev=58
* Fix tests on Python 3.13.0a5. Patch by Jelle Zijlstra.
* Fix the runtime behavior of type parameters with defaults
* Fix minor discrepancy between error messages produced by
`typing` and `typing_extensions` on Python 3.10.
* When `include_extra=False`, `get_type_hints()` now strips
`ReadOnly` from the annotation.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typing_extensions?expand=0&rev=56
- update to 4.10.0:
This feature release adds support for PEP 728 (TypedDict with extra
items) and PEP 742 (``TypeIs``).
- Add support for PEP 728, supporting the `closed` keyword argument and the
special `__extra_items__` key for TypedDict. Patch by Zixuan James Li.
- Add support for PEP 742, adding `typing_extensions.TypeIs`. Patch
by Jelle Zijlstra.
- Drop runtime error when a read-only `TypedDict` item overrides a mutable
one. Type checkers should still flag this as an error. Patch by Jelle
Zijlstra.
- Speedup `issubclass()` checks against simple runtime-checkable protocols by
around 6% (backporting https://github.com/python/cpython/pull/112717, by Alex
Waygood).
- Fix a regression in the implementation of protocols where `typing.Protocol`
classes that were not marked as `@runtime_checkable` would be unnecessarily
introspected, potentially causing exceptions to be raised if the protocol had
problematic members. Patch by Alex Waygood, backporting
https://github.com/python/cpython/pull/113401.
- obsoletes backport-recent-implementation-of-protocol.patch
OBS-URL: https://build.opensuse.org/request/show/1152835
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typing_extensions?expand=0&rev=54
- update to 4.9.0:
* This feature release adds `typing_extensions.ReadOnly`, as
specified by PEP 705, and makes various other improvements,
especially to `@typing_extensions.deprecated()`.
* Add support for PEP 705, adding `typing_extensions.ReadOnly`.
* All parameters on `NewType.__call__` are now positional-only.
This means that the signature of
`typing_extensions.NewType.__call__` now exactly matches the
* signature of `typing.NewType.__call__`.
* Fix bug with using `@deprecated` on a mixin class.
* Exclude `__match_args__` from `Protocol` members.
* When creating a `typing_extensions.NamedTuple` class, ensure
`__set_name__` is called on all objects that define
`__set_name__` and exist in the values of the `NamedTuple`
class's class dictionary.
* Support most use cases for PEP 612 with Generic
- add transitional typing-extensions provides
* Fix tests for Python 3.9
OBS-URL: https://build.opensuse.org/request/show/1135644
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typing_extensions?expand=0&rev=22
* This feature release adds `typing_extensions.ReadOnly`, as
specified by PEP 705, and makes various other improvements,
especially to `@typing_extensions.deprecated()`.
* Add support for PEP 705, adding `typing_extensions.ReadOnly`.
* All parameters on `NewType.__call__` are now positional-only.
This means that the signature of
`typing_extensions.NewType.__call__` now exactly matches the
* signature of `typing.NewType.__call__`.
* Fix bug with using `@deprecated` on a mixin class.
* Exclude `__match_args__` from `Protocol` members.
* When creating a `typing_extensions.NamedTuple` class, ensure
`__set_name__` is called on all objects that define
`__set_name__` and exist in the values of the `NamedTuple`
class's class dictionary.
* Support most use cases for PEP 612 with Generic
- add transitional typing-extensions provides
* Fix tests for Python 3.9
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typing_extensions?expand=0&rev=50
- Add typing_extensions.Doc, as proposed by PEP 727
- Drop support for Python 3.7 (including PyPy-3.7)
- Fix bug where get_original_bases() would return incorrect
results when called on a concrete subclass of a generic class
- Fix bug where ParamSpec(default=...) would raise a TypeError
on Python versions <3.11
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typing_extensions?expand=0&rev=47
- Clean specfile from old cruft.
- Requires Python 3.7+
- Fix testsuite: Must test as module; don't need multibuild.
- Update Summary and Description
- Update to version 4.4.0
* Add `typing_extensions.Any` a backport of python 3.11's Any class which is
subclassable at runtime. (backport from python/cpython#31841, by Shantanu
and Jelle Zijlstra). Patch by James Hilton-Balfe (@Gobot1234).
* Add initial support for TypeVarLike `default` parameter, PEP 696.
Patch by Marc Mueller (@cdce8p).
* Runtime support for PEP 698, adding `typing_extensions.override`. Patch by
Jelle Zijlstra.
* Add the `infer_variance` parameter to `TypeVar`, as specified in PEP 695.
Patch by Jelle Zijlstra.
OBS-URL: https://build.opensuse.org/request/show/1031001
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typing_extensions?expand=0&rev=16
- Update to version 4.4.0
* Add `typing_extensions.Any` a backport of python 3.11's Any class which is
subclassable at runtime. (backport from python/cpython#31841, by Shantanu
and Jelle Zijlstra). Patch by James Hilton-Balfe (@Gobot1234).
* Add initial support for TypeVarLike `default` parameter, PEP 696.
Patch by Marc Mueller (@cdce8p).
* Runtime support for PEP 698, adding `typing_extensions.override`. Patch by
Jelle Zijlstra.
* Add the `infer_variance` parameter to `TypeVar`, as specified in PEP 695.
Patch by Jelle Zijlstra.
OBS-URL: https://build.opensuse.org/request/show/1029737
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typing_extensions?expand=0&rev=35
- Update to version 4.2.0
* Re-export `typing.Unpack` and `typing.TypeVarTuple` on Python 3.11.
* Add `ParamSpecArgs` and `ParamSpecKwargs` to `__all__`.
* Improve "accepts only single type" error messages.
* Improve the distributed package. Patch by Marc Mueller (@cdce8p).
* Update `typing_extensions.dataclass_transform` to rename the
`field_descriptors` parameter to `field_specifiers` and accept
arbitrary keyword arguments.
* Add `typing_extensions.get_overloads` and
`typing_extensions.clear_overloads`, and add registry support to
`typing_extensions.overload`. Backport from python/cpython#89263.
* Add `typing_extensions.assert_type`. Backport from bpo-46480.
* Drop support for Python 3.6. Original patch by Adam Turner (@AA-Turner).
- from version 4.1.1
* Fix importing `typing_extensions` on Python 3.7.0 and 3.7.1. Original
patch by Nikita Sobolev (@sobolevn).
- from version 4.1.0
* Runtime support for PEP 646, adding `typing_extensions.TypeVarTuple`
and `typing_extensions.Unpack`.
* Add interaction of `Required` and `NotRequired` with `__required_keys__`,
`__optional_keys__` and `get_type_hints()`. Patch by David Cabot (@d-k-bo).
* Runtime support for PEP 675 and `typing_extensions.LiteralString`.
* Add `Never` and `assert_never`. Backport from bpo-46475.
* `ParamSpec` args and kwargs are now equal to themselves. Backport from
bpo-46676. Patch by Gregory Beauregard (@GBeauregard).
* Add `reveal_type`. Backport from bpo-46414.
* Runtime support for PEP 681 and `typing_extensions.dataclass_transform`.
* `Annotated` can now wrap `ClassVar` and `Final`. Backport from
bpo-46491. Patch by Gregory Beauregard (@GBeauregard).
* Add missed `Required` and `NotRequired` to `__all__`. Patch by
OBS-URL: https://build.opensuse.org/request/show/971051
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typing_extensions?expand=0&rev=31
- Drop the old tarball
- Replace test_modules.tar.gz with python-testsuite
- Remove fix_tests.patch which is half fixing test_modules.tar.gz,
and the other half is replaced with a less brittle sed.
- Remove unnecessary build dependencies
- Update to 3.7.2
* Pass *args and **kwargs to superclass in Generic.__new__
* Fix for issue #524
* Fix typing_extensions to support PEP 560
* Add annotations to NamedTuple children __new__ constructors
* Add missing 'NoReturn' to __all__ in typing.py
* Backport Generic.__new__ fix
* Fix IO.closed to be property
* Add Final to typing_extensions
* Fix instance/subclass checks of functions against runtime protocols
* Add Literal[...] types to typing_extensions
OBS-URL: https://build.opensuse.org/request/show/680053
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typing_extensions?expand=0&rev=2
oid sha256:8676b788e32f02ab42d9e7c61324048ae4c6d844a399eebace3d4979d75ceef4
size 107423
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.