1
0
forked from VimPlug/jedi

Fix wrong types for iterate, fixes #1524

This commit is contained in:
Dave Halter
2020-03-21 18:09:03 +01:00
parent a2f4d1bbe7
commit bb9731b561
2 changed files with 11 additions and 10 deletions

View File

@@ -91,7 +91,7 @@ b[0]
#? str()
[x for x in 'chr'][0]
# jedi issue #26
# From GitHub #26
#? list()
a = [[int(v) for v in line.strip().split() if v] for line in ["123", str(), "123"] if line]
#? list()
@@ -99,6 +99,10 @@ a[0]
#? int()
a[0][0]
# From GitHub #1524
#?
[nothing for nothing, _ in [1]][0]
# -----------------
# generator comprehensions
# -----------------