* 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
* 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
- 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