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

Method _negate

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

Source from the content-addressed store, hash-verified

3003 return self
3004
3005 def _negate(self) -> Any:
3006 grouped = self.self_group(against=operators.inv)
3007 assert isinstance(grouped, ColumnElement)
3008 return UnaryExpression(grouped, operator=operators.inv)
3009
3010
3011class BooleanClauseList(ExpressionClauseList[bool]):

Callers

nothing calls this directly

Calls 2

UnaryExpressionClass · 0.85
self_groupMethod · 0.45

Tested by

no test coverage detected