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

Method __attrs_post_init__

src/licensedcode/models.py:2789–2799  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

2787 """
2788
2789 def __attrs_post_init__(self, *args, **kwargs):
2790 # We craft a UNIQUE identifier for the matched content
2791 self.identifier = f'license-detection-unknown-{self._unique_id}'
2792
2793 self.license_expression = UNKNOWN_LICENSE_KEY
2794 # TODO: that this could be shared across rules as an optimization
2795 self.license_expression_object = self.licensing.parse(UNKNOWN_LICENSE_KEY)
2796 self.is_license_notice = True
2797 self.notes = 'Unknown license based on a composite of license words.'
2798 self.is_synthetic = True
2799 self.setup()
2800
2801
2802@attr.s(slots=True, repr=False)

Callers

nothing calls this directly

Calls 2

parseMethod · 0.45
setupMethod · 0.45

Tested by

no test coverage detected