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

Method __eq__

lib/sqlalchemy/sql/base.py:2575–2581  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

2573 self.add(col)
2574
2575 def __eq__(self, other):
2576 l = []
2577 for c in other:
2578 for local in self:
2579 if c.shares_lineage(local):
2580 l.append(c == local)
2581 return elements.and_(*l)
2582
2583 def __hash__(self) -> int: # type: ignore[override]
2584 return hash(tuple(x for x in self))

Callers

nothing calls this directly

Calls 3

shares_lineageMethod · 0.80
appendMethod · 0.45
and_Method · 0.45

Tested by

no test coverage detected