Skip to content

Commit e44fdcc

Browse files
committed
Merge remote-tracking branch 'origin/TypeAliasType-extension' into TypeAliasType-extension
2 parents e613294 + 144c7b8 commit e44fdcc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
- Fix bug where a subscripted `TypeAliasType` instance did not have all
1313
attributes of the original `TypeAliasType` instance on older Python versions.
1414
Patch by [Daraan](https://github.com/Daraan) and Alex Waygood.
15+
- Fix bug where subscripted `TypeAliasType` instances (and some other
16+
subscripted objects) had wrong parameters if they were directly
17+
subscripted with an `Unpack` object.
18+
Patch by [Daraan](https://github.com/Daraan).
1519

1620
# Release 4.12.2 (June 7, 2024)
1721

src/test_typing_extensions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7492,7 +7492,6 @@ class Foo(Generic[Unpack[Ts]]):
74927492
call_int_T = CallableP[Unpack[Tuple[int, T]]]
74937493
self.assertEqual(call_int_T.__parameters__, (T,))
74947494

7495-
74967495
def test_alias_attributes(self):
74977496
T = TypeVar('T')
74987497
T2 = TypeVar('T2')

0 commit comments

Comments
 (0)