Skip to content

Commit c1f3b1e

Browse files
committed
Add regression test with typing-full fixture
1 parent b9823f6 commit c1f3b1e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test-data/unit/check-python312.test

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2237,3 +2237,14 @@ class D[*Ts](Generic[Unpack[Us]]): # E: Generic[...] base class is redundant \
22372237
# E: Can only use one type var tuple in a class def
22382238
pass
22392239
[builtins fixtures/tuple.pyi]
2240+
2241+
[case testPep695GenericTypeAliasReassignment]
2242+
from typing import reveal_type
2243+
2244+
type A[T] = T | str
2245+
B = A
2246+
reveal_type(B)
2247+
[out]
2248+
main:5: note: Revealed type is "typing.TypeAliasType"
2249+
[builtins fixtures/tuple.pyi]
2250+
[typing fixtures/typing-full.pyi]

0 commit comments

Comments
 (0)