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

Method attach_chain

scratchattach/editor/block.py:552–557  ·  view source on GitHub ↗
(self, *chain: Block)

Source from the content-addressed store, hash-verified

550 return self.attach_block(self.dcopy())
551
552 def attach_chain(self, *chain: Block) -> Block:
553 attaching_block = self
554 for _block in chain:
555 attaching_block = attaching_block.attach_block(_block)
556
557 return attaching_block
558
559 def duplicate_chain(self) -> Block:
560 return self.bottom_level_block.attach_chain(*map(Block.dcopy, self.attached_chain))

Callers 1

duplicate_chainMethod · 0.80

Calls 1

attach_blockMethod · 0.80

Tested by

no test coverage detected