(cls, namespace: str, val: Any)
| 45 | |
| 46 | @classmethod |
| 47 | def write(cls, namespace: str, val: Any): |
| 48 | cache = LocalState(LocalState.default_path()) |
| 49 | cache.data[namespace] = val |
| 50 | |
| 51 | Path(os.path.dirname(cache.path)).mkdir(parents=True, exist_ok=True) |
| 52 | with open(cache.path, "w+") as f: |
| 53 | toml.dump(cache.data, f) |
| 54 | |
| 55 | |
| 56 | class TeleportLocalState: |
no test coverage detected