Ejemplo n.º 1
0
 def is_not(self: MagicT, value: Any) -> MagicT:
     return self._extend(
         CombinationOperation(right=value, combinator=operator.is_not))
Ejemplo n.º 2
0
 def __floordiv__(self: MagicT, other: Any) -> MagicT:
     return self._extend(
         CombinationOperation(right=other, combinator=operator.floordiv))
Ejemplo n.º 3
0
 def __pow__(self: MagicT, other: Any) -> MagicT:
     return self._extend(
         CombinationOperation(right=other, combinator=operator.pow))
Ejemplo n.º 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_))