(self, document: tomlkit.TOMLDocument)
| 102 | self._write_text(self.file, tomlkit.dumps(document)) |
| 103 | |
| 104 | def get(self, document: tomlkit.TOMLDocument) -> str: |
| 105 | return document["project"]["version"] # type: ignore[index,return-value] |
| 106 | |
| 107 | def set(self, document: tomlkit.TOMLDocument, version: str) -> None: |
| 108 | document["project"]["version"] = version # type: ignore[index] |