Skip to content

Commit 73affc0

Browse files
authored
Incremental regression test for recursive aliases (#19853)
See original PR #19845
1 parent 647ea8c commit 73affc0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test-data/unit/check-incremental.test

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2577,6 +2577,13 @@ C(1)[0]
25772577
[builtins fixtures/list.pyi]
25782578
[out]
25792579

2580+
[case testSerializeRecursiveAlias]
2581+
from typing import Callable, Union
2582+
2583+
Node = Union[str, int, Callable[[], "Node"]]
2584+
n: Node
2585+
[out]
2586+
25802587
[case testSerializeRecursiveAliases1]
25812588

25822589
from typing import Type, Callable, Union

0 commit comments

Comments
 (0)