MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _cloned_difference

Function _cloned_difference

lib/sqlalchemy/sql/base.py:371–377  ·  view source on GitHub ↗
(a: Iterable[_CLE], b: Iterable[_CLE])

Source from the content-addressed store, hash-verified

369
370
371def _cloned_difference(a: Iterable[_CLE], b: Iterable[_CLE]) -> Set[_CLE]:
372 all_overlap: Set[_CLE] = set(_expand_cloned(a)).intersection(
373 _expand_cloned(b)
374 )
375 return {
376 elem for elem in a if not all_overlap.intersection(elem._cloned_set)
377 }
378
379
380class _DialectArgView(MutableMapping[str, Any]):

Callers 1

_get_display_fromsMethod · 0.85

Calls 2

_expand_clonedFunction · 0.85
intersectionMethod · 0.45

Tested by

no test coverage detected