MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _negate

Method _negate

lib/sqlalchemy/sql/elements.py:4303–4314  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4301 return self.left._from_objects + self.right._from_objects
4302
4303 def _negate(self):
4304 if self.negate is not None:
4305 return BinaryExpression(
4306 self.left,
4307 self.right._negate_in_binary(self.negate, self.operator),
4308 self.negate,
4309 negate=self.operator,
4310 type_=self.type,
4311 modifiers=self.modifiers,
4312 )
4313 else:
4314 return self.self_group()._negate()
4315
4316
4317class Slice(ColumnElement[Any]):

Callers

nothing calls this directly

Calls 4

BinaryExpressionClass · 0.85
_negate_in_binaryMethod · 0.45
_negateMethod · 0.45
self_groupMethod · 0.45

Tested by

no test coverage detected