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

Method _build_resource_class

src/commoncode/resource.py:451–461  ·  view source on GitHub ↗

Return a Resource class to use with this Codebase

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

449 return self.codebase_attributes
450
451 def _build_resource_class(self, *args, **kwargs):
452 """
453 Return a Resource class to use with this Codebase
454 """
455 # Resource sub-class to use. Configured with plugin attributes if present
456 return attr.make_class(
457 name="ScannedResource",
458 attrs=self.resource_attributes or {},
459 slots=True,
460 bases=(Resource,),
461 )
462
463 # TODO: add populate progress manager!!!
464 def _populate(self):

Callers 1

_populateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected