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

Method __eq__

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

575 __hash__ = Operators.__hash__
576
577 def __eq__(self, other: Any) -> ColumnOperators: # type: ignore[override]
578 """Implement the ``==`` operator.
579
580 In a column context, produces the clause ``a = b``.
581 If the target is ``None``, produces ``a IS NULL``.
582
583 """
584 return self.operate(eq, other)
585
586 def __ne__(self, other: Any) -> ColumnOperators: # type: ignore[override]
587 """Implement the ``!=`` operator.

Callers

nothing calls this directly

Calls 1

operateMethod · 0.95

Tested by

no test coverage detected