Skip to content

Commit e93a45f

Browse files
committed
review comments
1 parent 39e564b commit e93a45f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

crates/ty_python_semantic/resources/mdtest/implicit_type_aliases.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ f(1)
2424
```py
2525
from typing import Union
2626

27-
T = list[Union["T", None]]
27+
Recursive = list[Union["Recursive", None]]
28+
29+
def _(r: Recursive):
30+
reveal_type(r) # revealed: list[Divergent]
2831
```
2932

3033
### New union syntax
@@ -35,5 +38,8 @@ python-version = "3.12"
3538
```
3639

3740
```py
38-
T = list["T" | None]
41+
Recursive = list["Recursive" | None]
42+
43+
def _(r: Recursive):
44+
reveal_type(r) # revealed: list[Divergent]
3945
```

0 commit comments

Comments
 (0)