Clear checkpoint(s). Args: file_path: Specific file to clear, or None to clear all.
(self, file_path: Optional[str] = None)
| 166 | return self.checkpoints.get(file_path) |
| 167 | |
| 168 | def clear(self, file_path: Optional[str] = None) -> None: |
| 169 | """Clear checkpoint(s). |
| 170 | |
| 171 | Args: |
| 172 | file_path: Specific file to clear, or None to clear all. |
| 173 | """ |
| 174 | if file_path: |
| 175 | self.checkpoints.pop(file_path, None) |
| 176 | else: |
| 177 | self.checkpoints = {} |
| 178 | self._save() |