forked from VimPlug/jedi
fix issues with generator comprehensions used directly with a send() call or something similar
This commit is contained in:
@@ -184,6 +184,14 @@ next(gen)
|
||||
#?
|
||||
gen[0]
|
||||
|
||||
gen = (a for arr in [[1.0]] for a in arr)
|
||||
#? float()
|
||||
next(gen)
|
||||
|
||||
#? int()
|
||||
(i for i in (1,)).send()
|
||||
|
||||
|
||||
# -----------------
|
||||
# ternary operator
|
||||
# -----------------
|
||||
|
||||
Reference in New Issue
Block a user