MCPcopy
hub / github.com/django/django / __invert__

Method __invert__

django/contrib/postgres/search.py:520–526  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

518 return "%s", (combined_value,)
519
520 def __invert__(self):
521 # Apply De Morgan's theorem.
522 cloned = self.copy()
523 cloned.connector = self.BITAND if self.connector == self.BITOR else self.BITOR
524 cloned.lhs = ~self.lhs
525 cloned.rhs = ~self.rhs
526 return cloned

Callers

nothing calls this directly

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected