forked from pool/python-typing_extensions
Accepting request 1152835 from system:homeautomation:home-assistant:unstable
- 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 commit is contained in:
@@ -1,3 +1,26 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 28 07:10:15 UTC 2024 - Adrian Schröter <adrian@suse.de>
|
||||
|
||||
- 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
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 8 18:18:41 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
|
Reference in New Issue
Block a user