mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-17 13:59:37 +08:00
Add a test to show that type var inference also works for tuples
This commit is contained in:
@@ -411,6 +411,15 @@ def mf(s: str) -> int:
|
|||||||
#? int()
|
#? int()
|
||||||
ma(mf)('2')
|
ma(mf)('2')
|
||||||
|
|
||||||
|
def xxx(x: typing.Iterable[TYPE_VARX]) -> typing.Tuple[str, TYPE_VARX]: ...
|
||||||
|
|
||||||
|
#? str()
|
||||||
|
xxx([0])[0]
|
||||||
|
#? int()
|
||||||
|
xxx([0])[1]
|
||||||
|
#?
|
||||||
|
xxx([0])[2]
|
||||||
|
|
||||||
# -------------------------
|
# -------------------------
|
||||||
# TYPE_CHECKING
|
# TYPE_CHECKING
|
||||||
# -------------------------
|
# -------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user