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

Method _wrap_blocks

python-client/src/datapane/blocks/layout.py:223–227  ·  view source on GitHub ↗

Wrap the list of blocks in a top-level block element if needed

(self)

Source from the content-addressed store, hash-verified

221 self._wrap_blocks()
222
223 def _wrap_blocks(self) -> None:
224 """Wrap the list of blocks in a top-level block element if needed"""
225 if len(self.blocks) > 1:
226 # only wrap if not all blocks are a Group object
227 self.blocks = [Group(blocks=self.blocks)]
228
229
230class BlockListIterator:

Callers 1

__init__Method · 0.95

Calls 1

GroupClass · 0.70

Tested by

no test coverage detected