MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / update_many

Method update_many

tools/commitlist.py:294–302  ·  view source on GitHub ↗
(self, records: Iterable[PullRequestRecord])

Source from the content-addressed store, hash-verified

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
305class GitHubClient:

Callers 1

mainFunction · 0.95

Calls 1

strFunction · 0.85

Tested by

no test coverage detected