示例#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_))