| 200 | |
| 201 | @dataclasses.dataclass(slots=True, frozen=True) |
| 202 | class WorkerRunTests(RunTests): |
| 203 | json_file: JsonFile |
| 204 | |
| 205 | def as_json(self) -> StrJSON: |
| 206 | return json.dumps(self, cls=_EncodeRunTests) |
| 207 | |
| 208 | @staticmethod |
| 209 | def from_json(worker_json: StrJSON) -> 'WorkerRunTests': |
| 210 | return json.loads(worker_json, object_hook=_decode_runtests) |
| 211 | |
| 212 | |
| 213 | class _EncodeRunTests(json.JSONEncoder): |
no outgoing calls
searching dependent graphs…