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

Method add_comment

scratchattach/editor/sprite.py:213–221  ·  view source on GitHub ↗
(self, _comment: comment.Comment)

Source from the content-addressed store, hash-verified

211 return chain[0]
212
213 def add_comment(self, _comment: comment.Comment) -> comment.Comment:
214 _comment.sprite = self
215 if _comment.id is None:
216 _comment.id = self.new_id
217
218 self.comments.append(_comment)
219 _comment.link_using_sprite()
220
221 return _comment
222
223 def remove_block(self, _block: block.Block):
224 for key, val in self.blocks.items():

Callers 2

set_commentMethod · 0.80
add_commentFunction · 0.80

Calls 1

link_using_spriteMethod · 0.45

Tested by

no test coverage detected