MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __ne__

Method __ne__

lib/sqlalchemy/sql/operators.py:750–757  ·  view source on GitHub ↗

Implement the ``!=`` operator. In a column context, produces the clause ``a != b``. If the target is ``None``, produces ``a IS NOT NULL``.

(self, other: Any)

Source from the content-addressed store, hash-verified

748 return self.operate(eq, other)
749
750 def __ne__(self, other: Any) -> ColumnOperators: # type: ignore[override]
751 """Implement the ``!=`` operator.
752
753 In a column context, produces the clause ``a != b``.
754 If the target is ``None``, produces ``a IS NOT NULL``.
755
756 """
757 return self.operate(ne, other)
758
759 def is_distinct_from(self, other: Any) -> ColumnOperators:
760 """Implement the ``IS DISTINCT FROM`` operator.

Callers

nothing calls this directly

Calls 1

operateMethod · 0.95

Tested by

no test coverage detected