MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / reverse_operate

Method reverse_operate

lib/sqlalchemy/orm/properties.py:655–659  ·  view source on GitHub ↗
(
        self, op: OperatorType, other: Any, **kwargs: Any
    )

Source from the content-addressed store, hash-verified

653 return op(self.__clause_element__(), *other, **kwargs) # type: ignore[no-any-return] # noqa: E501
654
655 def reverse_operate(
656 self, op: OperatorType, other: Any, **kwargs: Any
657 ) -> ColumnElement[Any]:
658 col = self.__clause_element__()
659 return op(col._bind_param(op, other), col, **kwargs) # type: ignore[no-any-return] # noqa: E501
660
661 def found_in_pep593_annotated(self) -> Any:
662 # return a blank mapped_column(). This mapped_column()'s

Callers

nothing calls this directly

Calls 3

__clause_element__Method · 0.95
opFunction · 0.85
_bind_paramMethod · 0.45

Tested by

no test coverage detected