(self, records: Iterable[PullRequestRecord])
| 292 | return records |
| 293 | |
| 294 | def update_many(self, records: Iterable[PullRequestRecord]) -> None: |
| 295 | changed = False |
| 296 | for record in records: |
| 297 | self._data[str(record.number)] = asdict(record) |
| 298 | changed = True |
| 299 | if changed: |
| 300 | self.path.write_text( |
| 301 | json.dumps(self._data, indent=2, sort_keys=True) + '\n' |
| 302 | ) |
| 303 | |
| 304 | |
| 305 | class GitHubClient: |