mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 14:34:31 +08:00
don't raise attribute NameErrors in all for loop name definitions.
This commit is contained in:
@@ -43,3 +43,10 @@ c.something = None
|
||||
#! name-error
|
||||
something = a
|
||||
something
|
||||
|
||||
|
||||
# should not raise anything.
|
||||
for loop_variable in [1, 2]:
|
||||
#! name-error
|
||||
x = undefined
|
||||
loop_variable
|
||||
|
||||
Reference in New Issue
Block a user