(self)
| 191 | return self.link_id.split("_", 1)[1] |
| 192 | |
| 193 | def _fetch(self) -> None: |
| 194 | data = self._fetch_data() |
| 195 | data = data["data"] |
| 196 | |
| 197 | if not data["children"]: |
| 198 | msg = f"No data returned for comment {self.fullname}" |
| 199 | raise ClientException(msg) |
| 200 | |
| 201 | comment_data = data["children"][0]["data"] |
| 202 | other = type(self)(self._reddit, _data=comment_data) |
| 203 | self.__dict__.update(other.__dict__) |
| 204 | super()._fetch() |
| 205 | |
| 206 | def _fetch_info(self) -> tuple[str, dict, dict[str, str]]: |
| 207 | return "info", {}, {"id": self.fullname} |
nothing calls this directly
no test coverage detected