(self)
| 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") |
no test coverage detected