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

Method _useAttributes

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

Source from the content-addressed store, hash-verified

74 return self._supported_events.value
75
76 def _useAttributes(self, attributes: dict[str, Any]) -> None:
77 if "events" in attributes: # pragma no branch
78 self._events = self._makeListOfStringsAttribute(attributes["events"])
79 if "name" in attributes: # pragma no branch
80 self._name = self._makeStringAttribute(attributes["name"])
81 if "schema" in attributes: # pragma no branch
82 self._schema = self._makeListOfListOfStringsAttribute(attributes["schema"])
83 if "supported_events" in attributes: # pragma no branch
84 self._supported_events = self._makeListOfStringsAttribute(attributes["supported_events"])

Callers

nothing calls this directly

Tested by

no test coverage detected