MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _negate_in_binary

Method _negate_in_binary

lib/sqlalchemy/sql/elements.py:2214–2220  ·  view source on GitHub ↗
(self, negated_op, original_op)

Source from the content-addressed store, hash-verified

2212 return c
2213
2214 def _negate_in_binary(self, negated_op, original_op):
2215 if self.expand_op is original_op:
2216 bind = self._clone()
2217 bind.expand_op = negated_op
2218 return bind
2219 else:
2220 return self
2221
2222 def _with_binary_element_type(self, type_: TypeEngine[Any]) -> Self:
2223 c: Self = ClauseElement._clone(self)

Callers

nothing calls this directly

Calls 1

_cloneMethod · 0.95

Tested by

no test coverage detected