1
0
forked from VimPlug/jedi

Introduce an additional node parameter for py__iter__ which helps static analysis.

This commit is contained in:
Dave Halter
2015-12-03 11:52:54 +01:00
parent f66b8138b7
commit 8daa0b8784
6 changed files with 41 additions and 35 deletions

View File

@@ -16,11 +16,12 @@ def try_iter_content(types):
"""Helper method for static analysis."""
for typ in types:
try:
f = typ.iter_content
f = typ.py__iter__
except AttributeError:
pass
else:
try_iter_content(f())
for iter_types in f():
try_iter_content(iter_types)
class Arguments(tree.Base):