refactor general array lookup method get_index_types
This commit is contained in:
1 parent
70d85d1b3a
commit
b6ec589997
6 files changed
+28
-19
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user