MCPcopy
hub / github.com/PyGithub/PyGithub / _BadAttribute

Class _BadAttribute

github/GithubObject.py:214–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212
213
214class _BadAttribute(Attribute[T]):
215 def __init__(self, value: Any, expectedType: Any, exception: Exception | None = None):
216 self.__value = value
217 self.__expectedType = expectedType
218 self.__exception = exception
219
220 @property
221 def value(self) -> T:
222 raise BadAttributeException(self.__value, self.__expectedType, self.__exception)
223
224
225# v3: add * to edit function of all GithubObject implementations,

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…