1
0
forked from VimPlug/jedi

refactor general array lookup method get_index_types

This commit is contained in:
Dave Halter
2014-05-12 15:23:48 +02:00
parent 70d85d1b3a
commit b6ec589997
6 changed files with 28 additions and 19 deletions
+1 -1
View File
@@ -356,7 +356,7 @@ def _check_isinstance_type(evaluator, stmt, search_name_part):
result = []
for c in evaluator.eval_call(classes[0]):
for typ in (c.get_index_types() if isinstance(c, iterable.Array) else [c]):
for typ in (c.values() if isinstance(c, iterable.Array) else [c]):
result += evaluator.execute(typ)
return result