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

Method from_json

scratchattach/editor/prim.py:30–31  ·  view source on GitHub ↗
(data: int)

Source from the content-addressed store, hash-verified

28
29 @staticmethod
30 def from_json(data: int):
31 return PrimTypes.find(data, "code")
32
33 def to_json(self) -> int:
34 return self.code

Callers

nothing calls this directly

Calls 1

findMethod · 0.45

Tested by

no test coverage detected