1
0
forked from VimPlug/jedi

Move execute_evaluated to a helper function

This commit is contained in:
Dave Halter
2018-08-05 01:26:13 +02:00
parent faba29a42b
commit 7a48fdc5f6
10 changed files with 30 additions and 22 deletions

View File

@@ -393,7 +393,7 @@ def _literals_to_types(evaluator, result):
# Literals are only valid as long as the operations are
# correct. Otherwise add a value-free instance.
cls = compiled.builtin_from_name(evaluator, typ.name.string_name)
new_result |= cls.execute_evaluated()
new_result |= helpers.execute_evaluated(cls)
else:
new_result |= ContextSet(typ)
return new_result