MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / union

Method union

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

Source from the content-addressed store, hash-verified

176
177 # @cython.ccall # cdef function cannot have star argument
178 def union(self, *other: Iterable[_S]) -> OrderedSet[Union[_T, _S]]:
179 result: OrderedSet[Union[_T, _S]] = self._from_list(list(self._list))
180 result.update(*other)
181 return result
182
183 def __or__(self, other: AbstractSet[_S]) -> OrderedSet[Union[_T, _S]]:
184 return self.union(other)

Callers 3

__add__Method · 0.95
__or__Method · 0.95

Calls 2

_from_listMethod · 0.95
updateMethod · 0.45

Tested by 1