MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _is_lexical_equivalent

Method _is_lexical_equivalent

lib/sqlalchemy/sql/selectable.py:860–868  ·  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

858 return fromclause in self._cloned_set
859
860 def _is_lexical_equivalent(self, other: FromClause) -> bool:
861 """Return ``True`` if this :class:`_expression.FromClause` and
862 the other represent the same lexical identity.
863
864 This tests if either one is a copy of the other, or
865 if they are the same via annotation identity.
866
867 """
868 return bool(self._cloned_set.intersection(other._cloned_set))
869
870 @util.ro_non_memoized_property
871 def description(self) -> str:

Callers

nothing calls this directly

Calls 1

intersectionMethod · 0.45

Tested by

no test coverage detected