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

Method _useAttributes

github/GitignoreTemplate.py:81–87  ·  view source on GitHub ↗
(self, attributes: dict[str, Any])

Source from the content-addressed store, hash-verified

79 return self._url.value
80
81 def _useAttributes(self, attributes: dict[str, Any]) -> None:
82 if "name" in attributes: # pragma no branch
83 self._name = self._makeStringAttribute(attributes["name"])
84 if "source" in attributes: # pragma no branch
85 self._source = self._makeStringAttribute(attributes["source"])
86 if "url" in attributes: # pragma no branch
87 self._url = self._makeStringAttribute(attributes["url"])

Callers

nothing calls this directly

Calls 1

_makeStringAttributeMethod · 0.80

Tested by

no test coverage detected