% operation returned both left and right side, but only the left side is really important.
This commit is contained in:
1 parent
a717981679
commit
77baabb93b
2 files changed
+14
No files matched your search
@@ -244,4 +244,8 @@ def _element_calculate(evaluator, left, operator, right):
|
||||
elif operator == '-':
|
||||
if _is_number(left) and _is_number(right):
|
||||
return [create(evaluator, left.obj - right.obj)]
|
||||
elif operator == '%':
|
||||
# With strings and numbers the left type typically remains. Except for
|
||||
# `int() % float()`.
|
||||
return [left]
|
||||
return [left, right]
|
||||
Reference in new issue
Block a user