(self, *other: Iterable[_S])
| 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) |