Пример #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_))