MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / _useAttributes

Method _useAttributes

github/CVSS.py:76–82  ·  view source on GitHub ↗
(self, attributes: dict[str, Any])

Source from the content-addressed store, hash-verified

74 return self._version.value
75
76 def _useAttributes(self, attributes: dict[str, Any]) -> None:
77 if "score" in attributes and attributes["score"] is not None: # pragma no branch
78 # ensure string so we don't have all the float extra nonsense
79 self._score = self._makeDecimalAttribute(Decimal(str(attributes["score"])))
80 if "vector_string" in attributes and attributes["vector_string"] is not None: # pragma no branch
81 self._vector_string = self._makeStringAttribute(attributes["vector_string"])
82 self._version = self._makeDecimalAttribute(Decimal(self.vector_string.split(":")[1].split("/")[0]))

Callers

nothing calls this directly

Calls 2

_makeDecimalAttributeMethod · 0.80
_makeStringAttributeMethod · 0.80

Tested by

no test coverage detected