MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / __ne__

Method __ne__

lib/sqlalchemy/sql/operators.py:586–593  ·  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

584 return self.operate(eq, other)
585
586 def __ne__(self, other: Any) -> ColumnOperators: # type: ignore[override]
587 """Implement the ``!=`` operator.
588
589 In a column context, produces the clause ``a != b``.
590 If the target is ``None``, produces ``a IS NOT NULL``.
591
592 """
593 return self.operate(ne, other)
594
595 def is_distinct_from(self, other: Any) -> ColumnOperators:
596 """Implement the ``IS DISTINCT FROM`` operator.

Callers

nothing calls this directly

Calls 1

operateMethod · 0.95

Tested by

no test coverage detected