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

Method _negate

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

Source from the content-addressed store, hash-verified

777 return self._negate()
778
779 def _negate(self) -> ClauseElement:
780 # TODO: this code is uncovered and in all likelihood is not included
781 # in any codepath. So this should raise NotImplementedError in 2.1
782 grouped = self.self_group(against=operators.inv)
783 assert isinstance(grouped, ColumnElement)
784 return UnaryExpression(grouped, operator=operators.inv)
785
786 def __bool__(self):
787 raise TypeError("Boolean value of this clause is not defined")

Callers 1

__invert__Method · 0.95

Calls 2

self_groupMethod · 0.95
UnaryExpressionClass · 0.85

Tested by

no test coverage detected