mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-09 12:05:47 +08:00
Avoid aborting search for yields when they are still reachable, see #683
This commit is contained in:
1 parent
bec87f7ff8
commit
d630ed55f3
2 files changed
+33
-11
No files matched your search
@@ -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__
|
||||
|
||||
Reference in new issue
Block a user