MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / proxy_set

Method proxy_set

lib/sqlalchemy/sql/elements.py:1638–1649  ·  view source on GitHub ↗

set of all columns we are proxying as of 2.0 this is explicitly deannotated columns. previously it was effectively deannotated columns but wasn't enforced. annotated columns should basically not go into sets if at all possible because their hashing behavior is very

(self)

Source from the content-addressed store, hash-verified

1636
1637 @util.memoized_property
1638 def proxy_set(self) -> FrozenSet[ColumnElement[Any]]:
1639 """set of all columns we are proxying
1640
1641 as of 2.0 this is explicitly deannotated columns. previously it was
1642 effectively deannotated columns but wasn't enforced. annotated
1643 columns should basically not go into sets if at all possible because
1644 their hashing behavior is very non-performant.
1645
1646 """
1647 return frozenset([self._deannotate()]).union(
1648 itertools.chain(*[c.proxy_set for c in self._proxies])
1649 )
1650
1651 @util.memoized_property
1652 def _expanded_proxy_set(self) -> FrozenSet[ColumnElement[Any]]:

Callers

nothing calls this directly

Calls 3

unionMethod · 0.45
_deannotateMethod · 0.45
chainMethod · 0.45

Tested by

no test coverage detected