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

Method subtract

src/licensedcode/query.py:863–871  ·  view source on GitHub ↗

Subtract the qspan matched positions from the parent query matchable positions.

(self, qspan)

Source from the content-addressed store, hash-verified

861 return self._high_matchables
862
863 def subtract(self, qspan):
864 """
865 Subtract the qspan matched positions from the parent query matchable
866 positions.
867 """
868 if qspan:
869 self.query.subtract(qspan)
870 self._high_matchables = self.high_matchables.difference_update(qspan)
871 self._low_matchables = self.low_matchables.difference_update(qspan)
872
873 def to_dict(self, brief=False, comprehensive=False, include_high=False):
874 """

Callers

nothing calls this directly

Calls 1

subtractMethod · 0.45

Tested by

no test coverage detected