Skip to content

Commit a365355

Browse files
committed
Merge and type correction
2 parents 28d1e84 + a506398 commit a365355

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ aliases that have a `Concatenate` special form as their argument.
2323
`Ellipsis` as an argument. Patch by [Daraan](https://github.com/Daraan).
2424
- Fix error in subscription of `Unpack` aliases causing nested Unpacks
2525
to not be resolved correctly. Patch by [Daraan](https://github.com/Daraan).
26+
- Backport CPython PR [#124795](https://github.com/python/cpython/pull/124795):
27+
fix `TypeAliasType` not raising an error on non-tuple inputs for `type_params`.
28+
Patch by [Daraan](https://github.com/Daraan).
2629
- Fix that lists and ... could not be used for parameter expressions for `TypeAliasType`
2730
instances before Python 3.11.
2831
Patch by [Daraan](https://github.com/Daraan).
29-
- Backport of CPython PR [#124795](https://github.com/python/cpython/pull/124795)
30-
and fix that `TypeAliasType` not raising an error on non-tuple inputs for `type_params`.
31-
Patch by [Daraan](https://github.com/Daraan).
3232

3333
# Release 4.12.2 (June 7, 2024)
3434

src/test_typing_extensions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7417,7 +7417,7 @@ def test_getitem(self):
74177417
self.assertEqual(get_args(fully_subscripted), (Iterable[float],))
74187418
self.assertIs(get_origin(fully_subscripted), ListOrSetT)
74197419

7420-
ValueWithoutTypeVar = TypeAliasType("ValueWithoutTypeParam", int, type_params=(T,))
7420+
ValueWithoutTypeVar = TypeAliasType("ValueWithoutTypeVar", int, type_params=(T,))
74217421
still_subscripted = ValueWithoutTypeVar[str]
74227422
self.assertEqual(get_args(still_subscripted), (str,))
74237423

0 commit comments

Comments
 (0)