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

Method to_tuple

src/packagedcode/models.py:157–161  ·  view source on GitHub ↗

Return a hashable tuple of primitive Python types.

(self, **kwargs)

Source from the content-addressed store, hash-verified

155 return attr.asdict(self)
156
157 def to_tuple(self, **kwargs):
158 """
159 Return a hashable tuple of primitive Python types.
160 """
161 return to_tuple(self.to_dict(**kwargs))
162
163 @classmethod
164 def from_dict(cls, mapping):

Callers 1

merge_sequencesFunction · 0.80

Calls 2

to_dictMethod · 0.95
to_tupleFunction · 0.85

Tested by

no test coverage detected