mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-09 06:31:25 +08:00
Merge branch 'master' into typeddict
This commit is contained in:
@@ -209,11 +209,11 @@ if r:
|
||||
|
||||
deleted_var = 3
|
||||
del deleted_var
|
||||
#? int()
|
||||
#?
|
||||
deleted_var
|
||||
#? ['deleted_var']
|
||||
#? []
|
||||
deleted_var
|
||||
#! ['deleted_var = 3']
|
||||
#! []
|
||||
deleted_var
|
||||
|
||||
# -----------------
|
||||
|
||||
@@ -78,6 +78,28 @@ g = iter([1.0])
|
||||
#? float()
|
||||
next(g)
|
||||
|
||||
x, y = Get()
|
||||
#? int() str()
|
||||
x
|
||||
#? int() str()
|
||||
x
|
||||
|
||||
class Iter:
|
||||
def __iter__(self):
|
||||
yield ""
|
||||
i = 0
|
||||
while True:
|
||||
v = 1
|
||||
yield v
|
||||
i += 1
|
||||
a, b, c = Iter()
|
||||
#? str() int()
|
||||
a
|
||||
#? str() int()
|
||||
b
|
||||
#? str() int()
|
||||
c
|
||||
|
||||
|
||||
# -----------------
|
||||
# __next__
|
||||
@@ -134,7 +156,7 @@ a, b = simple()
|
||||
#? int() str()
|
||||
a
|
||||
# For now this is ok.
|
||||
#?
|
||||
#? int() str()
|
||||
b
|
||||
|
||||
|
||||
|
||||
@@ -436,6 +436,12 @@ def the_callable() -> float: ...
|
||||
#? float()
|
||||
call3_pls()(the_callable)[0]
|
||||
|
||||
def call4_pls(fn: typing.Callable[..., TYPE_VARX]) -> typing.Callable[..., TYPE_VARX]:
|
||||
return ""
|
||||
|
||||
#? int()
|
||||
call4_pls(lambda x: 1)()
|
||||
|
||||
# -------------------------
|
||||
# TYPE_CHECKING
|
||||
# -------------------------
|
||||
|
||||
Reference in New Issue
Block a user