We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39e564b commit e93a45fCopy full SHA for e93a45f
crates/ty_python_semantic/resources/mdtest/implicit_type_aliases.md
@@ -24,7 +24,10 @@ f(1)
24
```py
25
from typing import Union
26
27
-T = list[Union["T", None]]
+Recursive = list[Union["Recursive", None]]
28
+
29
+def _(r: Recursive):
30
+ reveal_type(r) # revealed: list[Divergent]
31
```
32
33
### New union syntax
@@ -35,5 +38,8 @@ python-version = "3.12"
35
38
36
39
37
40
-T = list["T" | None]
41
+Recursive = list["Recursive" | None]
42
43
44
45
0 commit comments