MCPcopy Create free account
hub / github.com/cdgriffith/Box / handle_lists

Function handle_lists

box/box.py:214–220  ·  view source on GitHub ↗
(bx_list, paths="")

Source from the content-addressed store, hash-verified

212 yield from handle_lists(value, f"{paths}.{key}" if paths else key)
213
214 def handle_lists(bx_list, paths=""):
215 for i, value in enumerate(bx_list):
216 yield f"{paths}[{i}]"
217 if isinstance(value, list):
218 yield from handle_lists(value, f"{paths}[{i}]")
219 if isinstance(value, dict):
220 yield from handle_dicts(value, f"{paths}[{i}]")
221
222 yield from handle_dicts(bx, current)
223

Callers 1

handle_dictsFunction · 0.85

Calls 1

handle_dictsFunction · 0.85

Tested by

no test coverage detected