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

Method proxy_set

lib/sqlalchemy/sql/elements.py:1576–1587  ·  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

1574
1575 @util.memoized_property
1576 def proxy_set(self) -> FrozenSet[ColumnElement[Any]]:
1577 """set of all columns we are proxying
1578
1579 as of 2.0 this is explicitly deannotated columns. previously it was
1580 effectively deannotated columns but wasn't enforced. annotated
1581 columns should basically not go into sets if at all possible because
1582 their hashing behavior is very non-performant.
1583
1584 """
1585 return frozenset([self._deannotate()]).union(
1586 itertools.chain(*[c.proxy_set for c in self._proxies])
1587 )
1588
1589 @util.memoized_property
1590 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