MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / difference

Method difference

lib/sqlalchemy/util/_collections_cy.py:220–222  ·  view source on GitHub ↗
(self, *other: Iterable[Hashable])

Source from the content-addressed store, hash-verified

218
219 # @cython.ccall # cdef function cannot have star argument
220 def difference(self, *other: Iterable[Hashable]) -> OrderedSet[_T]:
221 other_set: Set[Any] = set.difference(self, *other)
222 return self._from_list([a for a in self._list if a in other_set])
223
224 def __sub__(self, other: AbstractSet[Hashable]) -> OrderedSet[_T]:
225 return self.difference(other)

Callers 7

reduce_columnsFunction · 0.95
__sub__Method · 0.95
find_cyclesFunction · 0.45
decorateFunction · 0.45
warnedFunction · 0.45
constructor_copyFunction · 0.45

Calls 1

_from_listMethod · 0.95

Tested by 1