Skip to content

Commit 97af2cc

Browse files
committed
Silence spurious pylint warning regarding ~val evaluation
1 parent da5cfaf commit 97af2cc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pymbolic/mapper/evaluator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ def map_right_shift(self, expr):
127127
return self.rec(expr.shiftee) >> self.rec(expr.shift)
128128

129129
def map_bitwise_not(self, expr):
130+
# ??? Why, pylint, why ???
131+
# pylint: disable=invalid-unary-operand-type
130132
return ~self.rec(expr.child)
131133

132134
def map_bitwise_or(self, expr):

0 commit comments

Comments
 (0)