(results: ResultCollection)
| 103 | |
| 104 | |
| 105 | def savecache(results: ResultCollection): |
| 106 | with open(CACHE, "w") as fh: |
| 107 | json.dump(results.todicts(), fh, indent=2) |
| 108 | |
| 109 | |
| 110 | def loadcache(cache=CACHE, on_missing: Literal["raise", "ignore"] = "ignore") -> ResultCollection: |