MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __eq__

Method __eq__

lib/sqlalchemy/sql/operators.py:741–748  ·  view source on GitHub ↗

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

(self, other: Any)

Source from the content-addressed store, hash-verified

739 __hash__ = Operators.__hash__
740
741 def __eq__(self, other: Any) -> ColumnOperators: # type: ignore[override]
742 """Implement the ``==`` operator.
743
744 In a column context, produces the clause ``a = b``.
745 If the target is ``None``, produces ``a IS NULL``.
746
747 """
748 return self.operate(eq, other)
749
750 def __ne__(self, other: Any) -> ColumnOperators: # type: ignore[override]
751 """Implement the ``!=`` operator.

Callers

nothing calls this directly

Calls 1

operateMethod · 0.95

Tested by

no test coverage detected