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

Method wrap_blocks

python-client/src/datapane/view/view_blocks.py:77–85  ·  view source on GitHub ↗
(cls, x: t.Union[Self, t.List[BlockOrPrimitive], BlockOrPrimitive])

Source from the content-addressed store, hash-verified

75
76 @classmethod
77 def wrap_blocks(cls, x: t.Union[Self, t.List[BlockOrPrimitive], BlockOrPrimitive]) -> Self:
78 blocks: Self
79 if isinstance(x, Blocks):
80 blocks = copy(x)
81 elif isinstance(x, list):
82 blocks = cls(*x)
83 else:
84 blocks = cls(x)
85 return blocks
86
87 @property
88 def has_compute(self):

Callers 3

build_reportFunction · 0.80
save_reportFunction · 0.80
stringify_reportFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected