mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-08 16:55:14 +08:00
Implement unions with forward references
This commit is contained in:
1 parent
01dc123ea1
commit
d87a4af50f
2 files changed
+17
-6
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user