mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +08:00
Fix another execute issue.
This commit is contained in:
@@ -23,9 +23,10 @@ class Context(object):
|
||||
Execute a function with already executed arguments.
|
||||
"""
|
||||
from jedi.evaluate.iterable import AlreadyEvaluated
|
||||
from jedi.evaluate.param import Arguments
|
||||
# TODO UGLY
|
||||
args = [AlreadyEvaluated([arg]) for arg in args]
|
||||
return self.execute(args)
|
||||
return self.execute(Arguments(self._evaluator, self, args))
|
||||
|
||||
|
||||
class TreeContext(Context):
|
||||
|
||||
@@ -32,7 +32,7 @@ class AbstractNameDefinition():
|
||||
return unite(context.execute(arguments) for context in self.infer())
|
||||
|
||||
def execute_evaluated(self, *args, **kwargs):
|
||||
return unite(context.execute(*args, **kwargs) for context in self.infer())
|
||||
return unite(context.execute_evaluated(*args, **kwargs) for context in self.infer())
|
||||
|
||||
|
||||
class ContextName(AbstractNameDefinition):
|
||||
|
||||
Reference in New Issue
Block a user