Skip to content

Commit

Permalink
Applying review comments #1
Browse files Browse the repository at this point in the history
  • Loading branch information
kozlov-alexey committed Jul 24, 2020
1 parent d3b66fb commit d8c0e37
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions numba/core/typing/builtins.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,12 +445,8 @@ def generic(self, args, kws):


@infer_global(operator.ne)
class ConstOpNotEq(AbstractTemplate):
def generic(self, args, kws):
assert not kws
(arg1, arg2) = args
if isinstance(arg1, types.Literal) and isinstance(arg2, types.Literal):
return signature(types.boolean, arg1, arg2)
class ConstOpNotEq(ConstOpEq):
pass


@infer_global(operator.eq)
Expand Down

0 comments on commit d8c0e37

Please sign in to comment.