(self)
| 744 | return compiled_sql, extracted_params, cache_hit |
| 745 | |
| 746 | def __invert__(self): |
| 747 | # undocumented element currently used by the ORM for |
| 748 | # relationship.contains() |
| 749 | if hasattr(self, "negation_clause"): |
| 750 | return self.negation_clause |
| 751 | else: |
| 752 | return self._negate() |
| 753 | |
| 754 | def _negate(self) -> ClauseElement: |
| 755 | # TODO: this code is uncovered and in all likelihood is not included |