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

Method _is_lexical_equivalent

lib/sqlalchemy/sql/selectable.py:827–835  ·  view source on GitHub ↗

Return ``True`` if this :class:`_expression.FromClause` and the other represent the same lexical identity. This tests if either one is a copy of the other, or if they are the same via annotation identity.

(self, other: FromClause)

Source from the content-addressed store, hash-verified

825 return fromclause in self._cloned_set
826
827 def _is_lexical_equivalent(self, other: FromClause) -> bool:
828 """Return ``True`` if this :class:`_expression.FromClause` and
829 the other represent the same lexical identity.
830
831 This tests if either one is a copy of the other, or
832 if they are the same via annotation identity.
833
834 """
835 return bool(self._cloned_set.intersection(other._cloned_set))
836
837 @util.ro_non_memoized_property
838 def description(self) -> str:

Callers

nothing calls this directly

Calls 1

intersectionMethod · 0.45

Tested by

no test coverage detected