| 212 | |
| 213 | |
| 214 | class _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, |
no outgoing calls
no test coverage detected
searching dependent graphs…