Skip to content

Commit

Permalink
Fix pylint issue for unary operators (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
a5kin committed May 9, 2019
1 parent 606f03e commit eb6302c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions xentica/core/expressions.py
Expand Up @@ -183,6 +183,15 @@ def op_func(self_var):
func_name = "__%s__" % unary_op
setattr(self.__class__, func_name, unary(unary_op))

def __pos__(self):
"""Placeholder for unary ``+``."""

def __neg__(self):
"""Placeholder for unary ``-``."""

def __invert__(self):
"""Placeholder for unary ``~``."""

def __get__(self, instance, owner):
"""Apply function to the operands."""
is_expr1 = isinstance(self.arg1, PatternExpression)
Expand Down

0 comments on commit eb6302c

Please sign in to comment.