|
1 | | -# Unreleased |
| 1 | +# Release 4.13.0rc1 (March 18, 2025) |
| 2 | + |
| 3 | +New features: |
2 | 4 |
|
3 | 5 | - Add `typing_extensions.TypeForm` from PEP 747. Patch by |
4 | 6 | Jelle Zijlstra. |
5 | 7 | - Add `typing_extensions.get_annotations`, a backport of |
6 | 8 | `inspect.get_annotations` that adds features specified |
7 | 9 | by PEP 649. Patches by Jelle Zijlstra and Alex Waygood. |
| 10 | +- Backport `evaluate_forward_ref` from CPython PR |
| 11 | + [#119891](https://github.com/python/cpython/pull/119891) to evaluate `ForwardRef`s. |
| 12 | + Patch by [Daraan](https://github.com/Daraan), backporting a CPython PR by Jelle Zijlstra. |
| 13 | + |
| 14 | +Bugfixes and changed features: |
| 15 | + |
| 16 | +- Update PEP 728 implementation to a newer version of the PEP. Patch by Jelle Zijlstra. |
8 | 17 | - Copy the coroutine status of functions and methods wrapped |
9 | 18 | with `@typing_extensions.deprecated`. Patch by Sebastian Rittau. |
10 | 19 | - Fix bug where `TypeAliasType` instances could be subscripted even |
|
17 | 26 | subscripted with an `Unpack` object. |
18 | 27 | Patch by [Daraan](https://github.com/Daraan). |
19 | 28 | - Backport to Python 3.10 the ability to substitute `...` in generic `Callable` |
20 | | -aliases that have a `Concatenate` special form as their argument. |
| 29 | + aliases that have a `Concatenate` special form as their argument. |
21 | 30 | Patch by [Daraan](https://github.com/Daraan). |
22 | 31 | - Extended the `Concatenate` backport for Python 3.8-3.10 to now accept |
23 | 32 | `Ellipsis` as an argument. Patch by [Daraan](https://github.com/Daraan). |
24 | 33 | - Fix backport of `get_type_hints` to reflect Python 3.11+ behavior which does not add |
25 | 34 | `Union[..., NoneType]` to annotations that have a `None` default value anymore. |
26 | 35 | This fixes wrapping of `Annotated` in an unwanted `Optional` in such cases. |
27 | 36 | Patch by [Daraan](https://github.com/Daraan). |
28 | | -- Fix error in subscription of `Unpack` aliases causing nested Unpacks |
| 37 | +- Fix error in subscription of `Unpack` aliases causing nested Unpacks |
29 | 38 | to not be resolved correctly. Patch by [Daraan](https://github.com/Daraan). |
30 | 39 | - Backport CPython PR [#124795](https://github.com/python/cpython/pull/124795): |
31 | 40 | fix `TypeAliasType` not raising an error on non-tuple inputs for `type_params`. |
32 | 41 | Patch by [Daraan](https://github.com/Daraan). |
33 | | -- Backport `evaluate_forward_ref` from CPython PR |
34 | | - [#119891](https://github.com/python/cpython/pull/119891) to evaluate `ForwardRef`s. |
35 | | - Patch by [Daraan](https://github.com/Daraan), backporting a CPython PR by Jelle Zijlstra. |
36 | 42 | - Fix that lists and ... could not be used for parameter expressions for `TypeAliasType` |
37 | 43 | instances before Python 3.11. |
38 | 44 | Patch by [Daraan](https://github.com/Daraan). |
39 | | -- Fix error on Python 3.10 when using `typing.Concatenate` and |
| 45 | +- Fix error on Python 3.10 when using `typing.Concatenate` and |
40 | 46 | `typing_extensions.Concatenate` together. Patch by [Daraan](https://github.com/Daraan). |
41 | 47 | - Backport of CPython PR [#109544](https://github.com/python/cpython/pull/109544) |
42 | 48 | to reflect Python 3.13+ behavior: A value assigned to `__total__` in the class body of a |
43 | 49 | `TypedDict` will be overwritten by the `total` argument of the `TypedDict` constructor. |
44 | 50 | Patch by [Daraan](https://github.com/Daraan), backporting a CPython PR by Jelle Zijlstra. |
45 | | -- Fix for Python 3.11 that now `isinstance(typing_extensions.Unpack[...], TypeVar)` |
| 51 | +- Fix for Python 3.11 that now `isinstance(typing_extensions.Unpack[...], TypeVar)` |
46 | 52 | evaluates to `False`, however still `True` for <3.11. |
47 | 53 | Patch by [Daraan](https://github.com/Daraan) |
48 | 54 |
|
|
0 commit comments