1
0
forked from VimPlug/jedi

Implement new-style unions with TypeVars

This commit is contained in:
Dave Halter
2026-05-01 21:01:27 +02:00
parent 8ba5b67622
commit 55e5f0cb92
2 changed files with 10 additions and 1 deletions
@@ -387,3 +387,11 @@ first(custom_partial2_unbound_instance)
#? str()
values(custom_partial2_unbound_instance)[0]
def generic_func1(arg: T) -> int | str | T: pass
def generic_func2(arg: T) -> Union[int, str, T]: pass
#? int() str() bytes()
generic_func1(b"hello")
#? int() str() bytes()
generic_func2(b"hello")