Skip to content

Commit 144c7b8

Browse files
authored
Merge branch 'main' into TypeAliasType-extension
2 parents 0ae4c63 + 7632716 commit 144c7b8

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
@@ -7499,7 +7499,6 @@ class Foo(Generic[Unpack[Ts]]):
74997499
call_int_T = CallableP[Unpack[Tuple[int, T]]]
75007500
self.assertEqual(call_int_T.__parameters__, (T,))
75017501

7502-
75037502
def test_alias_attributes(self):
75047503
T = TypeVar('T')
75057504
T2 = TypeVar('T2')

0 commit comments

Comments
 (0)