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

Method _useAttributes

github/AdvisoryVulnerability.py:178–191  ·  view source on GitHub ↗
(self, attributes: dict[str, Any])

Source from the content-addressed store, hash-verified

176 }
177
178 def _useAttributes(self, attributes: dict[str, Any]) -> None:
179 if "first_patched_version" in attributes: # pragma no branch
180 self._first_patched_version = self._makeStringAttribute(attributes["first_patched_version"])
181 if "package" in attributes: # pragma no branch
182 self._package = self._makeClassAttribute(
183 github.AdvisoryVulnerabilityPackage.AdvisoryVulnerabilityPackage,
184 attributes["package"],
185 )
186 if "patched_versions" in attributes: # pragma no branch
187 self._patched_versions = self._makeStringAttribute(attributes["patched_versions"])
188 if "vulnerable_functions" in attributes: # pragma no branch
189 self._vulnerable_functions = self._makeListOfStringsAttribute(attributes["vulnerable_functions"])
190 if "vulnerable_version_range" in attributes: # pragma no branch
191 self._vulnerable_version_range = self._makeStringAttribute(attributes["vulnerable_version_range"])

Callers

nothing calls this directly

Calls 3

_makeStringAttributeMethod · 0.80
_makeClassAttributeMethod · 0.80

Tested by

no test coverage detected