diff --git a/dynamic.py b/dynamic.py index ac34d1b4..236b3140 100644 --- a/dynamic.py +++ b/dynamic.py @@ -203,6 +203,7 @@ def _check_array_additions(compare_array, module, is_list): return result def get_execution_parent(element, *stop_classes): + """ Used to get an Instance/Execution parent """ if isinstance(element, evaluate.Array): stmt = element._array.parent_stmt() else: @@ -244,6 +245,7 @@ def _check_array_additions(compare_array, module, is_list): evaluate.follow_statement.pop_stmt() return res + def check_array_instances(instance): if not settings.dynamic_arrays_instances: return instance.var_args diff --git a/test/completion/thirdparty/jedi_.py b/test/completion/thirdparty/jedi_.py index faa41bad..78f50e05 100644 --- a/test/completion/thirdparty/jedi_.py +++ b/test/completion/thirdparty/jedi_.py @@ -33,5 +33,10 @@ el = list(evaluate.get_names_for_scope())[0][1] # TODO here should stand evaluate.Instance() and so on. # need to understand list comprehensions -#? +##? el = list(evaluate.get_names_for_scope())[0][1][0] + +#? list() +parsing.Scope((0,0)).get_set_vars() +#? +parsing.Scope((0,0)).get_set_vars()[0]