MCPcopy
hub / github.com/PyGithub/PyGithub / _makeClassAttribute

Method _makeClassAttribute

github/GithubObject.py:366–371  ·  view source on GitHub ↗
(self, klass: type[T_gh], value: Any)

Source from the content-addressed store, hash-verified

364 return GithubObject.__makeTransformedAttribute(value, str, _datetime_from_http_date) # type: ignore
365
366 def _makeClassAttribute(self, klass: type[T_gh], value: Any) -> Attribute[T_gh]:
367 return GithubObject.__makeTransformedAttribute(
368 value,
369 dict,
370 lambda value: klass(self._requester, self._headers, value),
371 )
372
373 def _makeUnionClassAttributeFromTypeName(
374 self, type_name: str | None, fallback_type: str | None, value: Any, *class_and_names: tuple[type[T_gh], str]

Callers 15

_useAttributesMethod · 0.80
_useAttributesMethod · 0.80
_useAttributesMethod · 0.80
_useAttributesMethod · 0.80
_useAttributesMethod · 0.80
_useAttributesMethod · 0.80
_useAttributesMethod · 0.80
_useAttributesMethod · 0.80
_useAttributesMethod · 0.80
_useAttributesMethod · 0.80
_useAttributesMethod · 0.80

Calls 1

Tested by

no test coverage detected