MCPcopy
hub / github.com/PyGithub/PyGithub / _useAttributes

Method _useAttributes

github/DependabotAlertAdvisory.py:64–74  ·  view source on GitHub ↗
(self, attributes: dict[str, Any])

Source from the content-addressed store, hash-verified

62 return self._vulnerabilities.value
63
64 def _useAttributes(self, attributes: dict[str, Any]) -> None:
65 if "references" in attributes:
66 self._references = self._makeListOfDictsAttribute(
67 attributes["references"],
68 )
69 if "vulnerabilities" in attributes:
70 self._vulnerabilities = self._makeListOfClassesAttribute(
71 github.DependabotAlertVulnerability.DependabotAlertVulnerability,
72 attributes["vulnerabilities"],
73 )
74 super()._useAttributes(attributes)

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected