MCPcopy Create free account
hub / github.com/datapane/datapane / __init__

Method __init__

python-client/src/datapane/blocks/layout.py:42–46  ·  view source on GitHub ↗
(self, *arg_blocks: BlockOrPrimitive, blocks: t.List[BlockOrPrimitive] = None, **kwargs)

Source from the content-addressed store, hash-verified

40 report_minimum_blocks: int = 1
41
42 def __init__(self, *arg_blocks: BlockOrPrimitive, blocks: t.List[BlockOrPrimitive] = None, **kwargs):
43 self.blocks = blocks or list(arg_blocks)
44 self.blocks = [wrap_block(b) for b in self.blocks]
45
46 super().__init__(**kwargs)
47
48 def __iter__(self):
49 return BlockListIterator(self.blocks.__iter__())

Callers

nothing calls this directly

Calls 2

wrap_blockFunction · 0.85
__init__Method · 0.45

Tested by

no test coverage detected