MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / reverse_operate

Method reverse_operate

lib/sqlalchemy/sql/elements.py:4130–4137  ·  view source on GitHub ↗
(
        self, op: OperatorType, other: Any, **kwargs: Any
    )

Source from the content-addressed store, hash-verified

4128 return self.comparator.operate(operators.mirror(op), *other, **kwargs)
4129
4130 def reverse_operate(
4131 self, op: OperatorType, other: Any, **kwargs: Any
4132 ) -> ColumnElement[_T]:
4133 # comparison operators should never call reverse_operate
4134 assert not operators.is_comparison(op)
4135 raise exc.ArgumentError(
4136 "Only comparison operators may be used with ANY/ALL"
4137 )
4138
4139
4140class AsBoolean(WrapsColumnExpression[bool], UnaryExpression[bool]):

Callers

nothing calls this directly

Calls 1

is_comparisonMethod · 0.80

Tested by

no test coverage detected