Move execute_evaluated to a helper function
This commit is contained in:
1 parent
faba29a42b
commit
7a48fdc5f6
10 files changed
+30
-22
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user