forked from VimPlug/jedi
By disabling dynamic arrays completely, arrays are now almost fully passing.
This commit is contained in:
@@ -507,6 +507,10 @@ def _check_array_additions(evaluator, compare_array, module, is_list):
|
||||
|
||||
def check_array_instances(evaluator, instance):
|
||||
"""Used for set() and list() instances."""
|
||||
|
||||
return instance.var_args
|
||||
|
||||
|
||||
if not settings.dynamic_arrays_instances:
|
||||
return instance.var_args
|
||||
ai = ArrayInstance(evaluator, instance)
|
||||
@@ -531,7 +535,6 @@ class ArrayInstance(IterableWrapper):
|
||||
"""
|
||||
items = []
|
||||
from jedi.evaluate.representation import Instance
|
||||
return []
|
||||
for stmt in self.var_args:
|
||||
for typ in self._evaluator.eval_statement(stmt):
|
||||
if isinstance(typ, Instance) and len(typ.var_args):
|
||||
|
||||
@@ -124,8 +124,7 @@ class Instance(use_metaclass(CachedMetaClass, Executed)):
|
||||
@memoize_default()
|
||||
def _get_method_execution(self, func):
|
||||
func = get_instance_el(self._evaluator, self, func, True)
|
||||
args = param.Arguments(self._evaluator, self.var_args)
|
||||
return FunctionExecution(self._evaluator, func, args)
|
||||
return FunctionExecution(self._evaluator, func, self.var_args)
|
||||
|
||||
def _get_func_self_name(self, func):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user