1
0
forked from VimPlug/jedi

new way of gathering statements to evaluate for static analysis

This commit is contained in:
Dave Halter
2014-05-16 12:23:09 +02:00
parent 857a9b7621
commit d59e21f43c
5 changed files with 82 additions and 15 deletions

View File

@@ -44,9 +44,26 @@ c.something = None
something = a
something
# -----------------
# Unused array variables should still raise attribute errors.
# -----------------
# should not raise anything.
for loop_variable in [1, 2]:
#! name-error
x = undefined
loop_variable
#! name-error
for loop_variable in [1, 2, undefined]:
pass
#! attribute-error
[1, ''.undefined_attr]
def return_one(something):
return 1
#! attribute-error
return_one(''.undefined_attribute)