Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ as_json
Method
as_json
Lib/test/libregrtest/runtests.py:205–206 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
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'
:
Callers
1
create_worker_process
Function · 0.80
Calls
1
dumps
Method · 0.45
Tested by
no test coverage detected