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

Function _cloned_difference

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

Source from the content-addressed store, hash-verified

357
358
359def _cloned_difference(a: Iterable[_CLE], b: Iterable[_CLE]) -> Set[_CLE]:
360 all_overlap: Set[_CLE] = set(_expand_cloned(a)).intersection(
361 _expand_cloned(b)
362 )
363 return {
364 elem for elem in a if not all_overlap.intersection(elem._cloned_set)
365 }
366
367
368class _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