MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __and__

Method __and__

lib/sqlalchemy/util/_collections_cy.py:191–192  ·  view source on GitHub ↗
(self, other: AbstractSet[Hashable])

Source from the content-addressed store, hash-verified

189 return self._from_list([a for a in self._list if a in other_set])
190
191 def __and__(self, other: AbstractSet[Hashable]) -> OrderedSet[_T]:
192 return self.intersection(other)
193
194 @cython.ccall
195 @cython.annotation_typing(False) # avoid cython crash from generic return

Callers

nothing calls this directly

Calls 1

intersectionMethod · 0.95

Tested by

no test coverage detected