Store the given config data.
(self, section_name: str, data: Any)
| 66 | return {} |
| 67 | |
| 68 | def set(self, section_name: str, data: Any) -> None: |
| 69 | """Store the given config data.""" |
| 70 | filename = self.file_name(section_name) |
| 71 | self.ensure_config_dir_exists() |
| 72 | |
| 73 | with open(filename, "w", encoding="utf-8") as f: |
| 74 | json.dump(data, f, indent=2) |
| 75 | |
| 76 | def update(self, section_name: str, new_data: Any) -> Any: |
| 77 | """Modify the config section by recursively updating it with new_data. |
no test coverage detected