1
0
forked from VimPlug/jedi

Implement unions with forward references

This commit is contained in:
Dave Halter
2026-05-01 16:40:25 +02:00
parent 01dc123ea1
commit d87a4af50f
2 changed files with 17 additions and 6 deletions
+8
View File
@@ -230,3 +230,11 @@ def use_type_with_annotation() -> type[int]: ...
#? int
use_type_with_annotation()
def union_with_forward_references(x: int | "str", y: "int" | str, z: "int | str"):
#? int() str()
x
#? int() str()
y
#? int() str()
z