예제 #1
0
 def is_not(self: MagicT, value: Any) -> MagicT:
     return self._extend(
         CombinationOperation(right=value, combinator=operator.is_not))
예제 #2
0
 def __floordiv__(self: MagicT, other: Any) -> MagicT:
     return self._extend(
         CombinationOperation(right=other, combinator=operator.floordiv))
예제 #3
0
 def __pow__(self: MagicT, other: Any) -> MagicT:
     return self._extend(
         CombinationOperation(right=other, combinator=operator.pow))
예제 #4
0
 def __and__(self: MagicT, other: Any) -> MagicT:
     if isinstance(other, MagicFilter):
         return self._extend(
             CombinationOperation(right=other, combinator=and_op))
     return self._extend(
         CombinationOperation(right=other, combinator=operator.and_))