Fixed #29066 -- Allowed negating query expressions.

This commit is contained in:
priyanshsaxena 2018-01-28 15:57:15 +05:30 committed by Tim Graham
parent 6b2f8fb91c
commit 617d5f410f
5 changed files with 17 additions and 3 deletions

View file

@ -65,6 +65,9 @@ class Combinable:
# OPERATORS #
#############
def __neg__(self):
return self._combine(-1, self.MUL, False)
def __add__(self, other):
return self._combine(other, self.ADD, False)