Disable dynamic array instances and fix an issue with missing the arguments class.

This commit is contained in:
Dave Halter
2014-11-14 15:55:02 +01:00
parent e64c78503e
commit 01178d30ea
2 changed files with 3 additions and 2 deletions

View File

@@ -530,6 +530,7 @@ 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):

View File

@@ -124,7 +124,8 @@ 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)
return FunctionExecution(self._evaluator, func, self.var_args) args = param.Arguments(self._evaluator, self.var_args)
return FunctionExecution(self._evaluator, func, args)
def _get_func_self_name(self, func): def _get_func_self_name(self, func):
""" """
@@ -200,7 +201,6 @@ class Instance(use_metaclass(CachedMetaClass, Executed)):
for var in names] for var in names]
def get_index_types(self, evaluator, index_array): def get_index_types(self, evaluator, index_array):
indexes = iterable.create_indexes_or_slices(self._evaluator, index_array) indexes = iterable.create_indexes_or_slices(self._evaluator, index_array)
if any([isinstance(i, iterable.Slice) for i in indexes]): if any([isinstance(i, iterable.Slice) for i in indexes]):
# Slice support in Jedi is very marginal, at the moment, so just # Slice support in Jedi is very marginal, at the moment, so just