mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 22:44:27 +08:00
Disable dynamic array instances and fix an issue with missing the arguments class.
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user