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):
|
def check_array_instances(evaluator, instance):
|
||||||
"""Used for set() and list() instances."""
|
"""Used for set() and list() instances."""
|
||||||
|
|
||||||
|
return instance.var_args
|
||||||
|
|
||||||
|
|
||||||
if not settings.dynamic_arrays_instances:
|
if not settings.dynamic_arrays_instances:
|
||||||
return instance.var_args
|
return instance.var_args
|
||||||
ai = ArrayInstance(evaluator, instance)
|
ai = ArrayInstance(evaluator, instance)
|
||||||
@@ -531,7 +535,6 @@ class ArrayInstance(IterableWrapper):
|
|||||||
"""
|
"""
|
||||||
items = []
|
items = []
|
||||||
from jedi.evaluate.representation import Instance
|
from jedi.evaluate.representation import Instance
|
||||||
return []
|
|
||||||
for stmt in self.var_args:
|
for stmt in self.var_args:
|
||||||
for typ in self._evaluator.eval_statement(stmt):
|
for typ in self._evaluator.eval_statement(stmt):
|
||||||
if isinstance(typ, Instance) and len(typ.var_args):
|
if isinstance(typ, Instance) and len(typ.var_args):
|
||||||
|
|||||||
@@ -124,8 +124,7 @@ class Instance(use_metaclass(CachedMetaClass, Executed)):
|
|||||||
@memoize_default()
|
@memoize_default()
|
||||||
def _get_method_execution(self, func):
|
def _get_method_execution(self, func):
|
||||||
func = get_instance_el(self._evaluator, self, func, True)
|
func = get_instance_el(self._evaluator, self, func, True)
|
||||||
args = param.Arguments(self._evaluator, self.var_args)
|
return FunctionExecution(self._evaluator, func, self.var_args)
|
||||||
return FunctionExecution(self._evaluator, func, args)
|
|
||||||
|
|
||||||
def _get_func_self_name(self, func):
|
def _get_func_self_name(self, func):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user