1
0
forked from VimPlug/jedi

execute_evaluated -> execute_with_values

This commit is contained in:
Dave Halter
2019-08-12 09:43:57 +02:00
parent 084995c378
commit 467839a9ea
14 changed files with 33 additions and 33 deletions
+2 -2
View File
@@ -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):
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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)