forked from VimPlug/jedi
execute_evaluated -> execute_with_values
This commit is contained in:
@@ -29,7 +29,7 @@ class CompiledValue(LazyContextWrapper):
|
||||
|
||||
def _get_wrapped_context(self):
|
||||
instance, = builtin_from_name(
|
||||
self.evaluator, self._compiled_obj.name.string_name).execute_evaluated()
|
||||
self.evaluator, self._compiled_obj.name.string_name).execute_with_values()
|
||||
return instance
|
||||
|
||||
def __repr__(self):
|
||||
@@ -50,7 +50,7 @@ def create_simple_object(evaluator, obj):
|
||||
|
||||
|
||||
def get_string_context_set(evaluator):
|
||||
return builtin_from_name(evaluator, u'str').execute_evaluated()
|
||||
return builtin_from_name(evaluator, u'str').execute_with_values()
|
||||
|
||||
|
||||
def load_module(evaluator, dotted_name, **kwargs):
|
||||
|
||||
@@ -328,7 +328,7 @@ class SignatureParamName(ParamNameInterface, AbstractNameDefinition):
|
||||
contexts = ContextSet([create_from_access_path(evaluator, p.default)])
|
||||
if p.has_annotation:
|
||||
annotation = create_from_access_path(evaluator, p.annotation)
|
||||
contexts |= annotation.execute_evaluated()
|
||||
contexts |= annotation.execute_with_values()
|
||||
return contexts
|
||||
|
||||
|
||||
|
||||
@@ -283,7 +283,7 @@ def _create(evaluator, access_handle, parent_context, *args):
|
||||
if tree_node.type == 'classdef':
|
||||
if not access_handle.is_class():
|
||||
# Is an instance, not a class.
|
||||
tree_contexts = tree_contexts.execute_evaluated()
|
||||
tree_contexts = tree_contexts.execute_with_values()
|
||||
|
||||
return ContextSet(
|
||||
MixedObject(compiled_object, tree_context=tree_context)
|
||||
|
||||
Reference in New Issue
Block a user