mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
MergedExecutedParams -> DynamicExecutedParams
This commit is contained in:
@@ -174,7 +174,7 @@ class TreeArguments(AbstractArguments):
|
|||||||
return '<%s: %s>' % (self.__class__.__name__, self.argument_node)
|
return '<%s: %s>' % (self.__class__.__name__, self.argument_node)
|
||||||
|
|
||||||
def get_calling_nodes(self):
|
def get_calling_nodes(self):
|
||||||
from jedi.evaluate.dynamic import MergedExecutedParams
|
from jedi.evaluate.dynamic import DynamicExecutedParams
|
||||||
old_arguments_list = []
|
old_arguments_list = []
|
||||||
arguments = self
|
arguments = self
|
||||||
|
|
||||||
@@ -193,7 +193,7 @@ class TreeArguments(AbstractArguments):
|
|||||||
if not isinstance(names[0], ParamName):
|
if not isinstance(names[0], ParamName):
|
||||||
break
|
break
|
||||||
param = names[0].get_param()
|
param = names[0].get_param()
|
||||||
if isinstance(param, MergedExecutedParams):
|
if isinstance(param, DynamicExecutedParams):
|
||||||
# For dynamic searches we don't even want to see errors.
|
# For dynamic searches we don't even want to see errors.
|
||||||
return []
|
return []
|
||||||
if not isinstance(param, ExecutedParam):
|
if not isinstance(param, ExecutedParam):
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ from jedi.evaluate import recursion
|
|||||||
MAX_PARAM_SEARCHES = 20
|
MAX_PARAM_SEARCHES = 20
|
||||||
|
|
||||||
|
|
||||||
class MergedExecutedParams(object):
|
class DynamicExecutedParams(object):
|
||||||
"""
|
"""
|
||||||
Simulates being a parameter while actually just being multiple params.
|
Simulates being a parameter while actually just being multiple params.
|
||||||
"""
|
"""
|
||||||
@@ -102,7 +102,7 @@ def search_params(evaluator, execution_context, funcdef):
|
|||||||
function_execution.get_params()
|
function_execution.get_params()
|
||||||
for function_execution in function_executions
|
for function_execution in function_executions
|
||||||
))
|
))
|
||||||
params = [MergedExecutedParams(evaluator, executed_params) for executed_params in zipped_params]
|
params = [DynamicExecutedParams(evaluator, executed_params) for executed_params in zipped_params]
|
||||||
# Evaluate the ExecutedParams to types.
|
# Evaluate the ExecutedParams to types.
|
||||||
else:
|
else:
|
||||||
return create_default_params(execution_context, funcdef)
|
return create_default_params(execution_context, funcdef)
|
||||||
|
|||||||
Reference in New Issue
Block a user