1
0
forked from VimPlug/jedi

Comprehensions are also possible arguments. Fixes 1146

This commit is contained in:
Dave Halter
2018-07-01 03:33:24 +02:00
parent a79a1fbef5
commit 8ffdf6746f
2 changed files with 15 additions and 3 deletions

View File

@@ -52,12 +52,12 @@ left
[a for a in {1:'x'}][0]
# list comprehensions should also work in combination with functions
def listen(arg):
def _listen(arg):
for x in arg:
#? str()
x
listen(['' for x in [1]])
_listen(['' for x in [1]])
#?
([str for x in []])[0]
@@ -212,3 +212,14 @@ next(iter({a for a in range(10)}))
#? int()
[a for a in {1, 2, 3}][0]
# -----------------
# syntax errors
# -----------------
# Issue #1146
#? ['list']
[int(str(x.value) for x in list
def reset_missing_bracket(): pass