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

Method _useAttributes

github/Autolink.py:93–103  ·  view source on GitHub ↗
(self, attributes: dict[str, Any])

Source from the content-addressed store, hash-verified

91 return self._url_template.value
92
93 def _useAttributes(self, attributes: dict[str, Any]) -> None:
94 if "id" in attributes: # pragma no branch
95 self._id = self._makeIntAttribute(attributes["id"])
96 if "is_alphanumeric" in attributes: # pragma no branch
97 self._is_alphanumeric = self._makeBoolAttribute(attributes["is_alphanumeric"])
98 if "key_prefix" in attributes: # pragma no branch
99 self._key_prefix = self._makeStringAttribute(attributes["key_prefix"])
100 if "updated_at" in attributes: # pragma no branch
101 self._updated_at = self._makeDatetimeAttribute(attributes["updated_at"])
102 if "url_template" in attributes: # pragma no branch
103 self._url_template = self._makeStringAttribute(attributes["url_template"])

Callers

nothing calls this directly

Calls 4

_makeIntAttributeMethod · 0.80
_makeBoolAttributeMethod · 0.80
_makeStringAttributeMethod · 0.80

Tested by

no test coverage detected