MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _expand_cloned

Function _expand_cloned

lib/sqlalchemy/sql/base.py:338–346  ·  view source on GitHub ↗

expand the given set of ClauseElements to be the set of all 'cloned' predecessors.

(
    elements: Iterable[_CLE],
)

Source from the content-addressed store, hash-verified

336
337
338def _expand_cloned(
339 elements: Iterable[_CLE],
340) -> Iterable[_CLE]:
341 """expand the given set of ClauseElements to be the set of all 'cloned'
342 predecessors.
343
344 """
345 # TODO: cython candidate
346 return itertools.chain(*[x._cloned_set for x in elements])
347
348
349def _de_clone(

Callers 6

_normalize_fromsMethod · 0.85
_expanded_proxy_setMethod · 0.85
_cloned_intersectionFunction · 0.85
_cloned_differenceFunction · 0.85
embeddedMethod · 0.85

Calls 1

chainMethod · 0.45

Tested by

no test coverage detected