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

Method traverse

python-client/src/datapane/blocks/layout.py:68–70  ·  view source on GitHub ↗
(self, visitor: VV)

Source from the content-addressed store, hash-verified

66 return cls(blocks=[Empty(gen_name())])
67
68 def traverse(self, visitor: VV) -> VV:
69 # perform a depth-first traversal of the contained blocks
70 return reduce(lambda _visitor, block: block.accept(_visitor), self.blocks, visitor)
71
72
73class Page(ContainerBlock):

Callers 3

visitMethod · 0.80
visitMethod · 0.80
_visit_subnodesMethod · 0.80

Calls 1

acceptMethod · 0.80

Tested by

no test coverage detected