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

Method set_mutation

scratchattach/editor/block.py:100–107  ·  view source on GitHub ↗

Attach a mutation object and link it, also asking the mutation to link its own subcomponents.

(self, _mutation: mutation.Mutation)

Source from the content-addressed store, hash-verified

98 return self
99
100 def set_mutation(self, _mutation: mutation.Mutation) -> Self:
101 """
102 Attach a mutation object and link it, also asking the mutation to link its own subcomponents.
103 """
104 self.mutation = _mutation
105 _mutation.block = self
106 _mutation.link_arguments()
107 return self
108
109 def set_comment(self, _comment: comment.Comment) -> Self:
110 """

Callers

nothing calls this directly

Calls 1

link_argumentsMethod · 0.80

Tested by

no test coverage detected