forked from VimPlug/jedi
% operation returned both left and right side, but only the left side is really important.
This commit is contained in:
@@ -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