MCPcopy Create free account
hub / github.com/TimMcCool/scratchattach / connect_empty_project_pb

Method connect_empty_project_pb

scratchattach/site/session.py:571–576  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

569 # -- Project JSON editing capabilities ---
570 # These are set to staticmethods right now, but they probably should not be
571 def connect_empty_project_pb(self) -> editor.Project:
572 pb = editor.Project.from_json(
573 empty_project_json
574 ) # in the future, ideally just init a new editor.Project, instead of loading an empty one
575 pb._session = self
576 return pb
577
578 def connect_pb_from_dict(self, project_json: dict) -> editor.Project:
579 pb = editor.Project.from_json(project_json)

Callers

nothing calls this directly

Calls 1

from_jsonMethod · 0.45

Tested by

no test coverage detected