MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / union

Method union

src/licensedcode/spans.py:143–148  ·  view source on GitHub ↗

Return the union of this span with other spans as a new span. (i.e. all positions that are in either spans.)

(self, *others)

Source from the content-addressed store, hash-verified

141 return Span(self._set.union(*[o._set for o in others]))
142
143 def union(self, *others):
144 """
145 Return the union of this span with other spans as a new span.
146 (i.e. all positions that are in either spans.)
147 """
148 return self.__or__(*others)
149
150 def difference(self, *others):
151 """

Callers 11

__or__Method · 0.80
restore_non_overlappingFunction · 0.80
match_queryMethod · 0.80
match_unknownsFunction · 0.80
is_matchableMethod · 0.80
filter_ignorable_cluesFunction · 0.80
copyrights.pyFile · 0.80
package_infoMethod · 0.80
Gem::LicensesClass · 0.80

Calls 1

__or__Method · 0.95

Tested by

no test coverage detected