(
self,
klass: type[T_gh],
value: dict[
str,
int | dict[str, Any],
],
)
| 442 | return _BadAttribute(value, [dict]) |
| 443 | |
| 444 | def _makeDictOfStringsToClassesAttribute( |
| 445 | self, |
| 446 | klass: type[T_gh], |
| 447 | value: dict[ |
| 448 | str, |
| 449 | int | dict[str, Any], |
| 450 | ], |
| 451 | ) -> Attribute[dict[str, T_gh]]: |
| 452 | if isinstance(value, dict) and all( |
| 453 | isinstance(key, str) and isinstance(element, dict) for key, element in value.items() |
| 454 | ): |
| 455 | return _ValuedAttribute( |
| 456 | {key: klass(self._requester, self._headers, element) for key, element in value.items()} |
| 457 | ) |
| 458 | else: |
| 459 | return _BadAttribute(value, {str: dict}) |
| 460 | |
| 461 | @property |
| 462 | def etag(self) -> str | None: |
no test coverage detected