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

Method difference

src/licensedcode/spans.py:150–155  ·  view source on GitHub ↗

Return the difference of two or more spans as a new span. (i.e. all positions that are in this span but not the others.)

(self, *others)

Source from the content-addressed store, hash-verified

148 return self.__or__(*others)
149
150 def difference(self, *others):
151 """
152 Return the difference of two or more spans as a new span.
153 (i.e. all positions that are in this span but not the others.)
154 """
155 return Span(self._set.difference(*[o._set for o in others]))
156
157 def __repr__(self):
158 """

Callers 1

match_queryMethod · 0.95

Calls 1

SpanClass · 0.85

Tested by

no test coverage detected