MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / walk

Function walk

scripts/theme_gate.py:388–397  ·  view source on GitHub ↗
(o: object)

Source from the content-addressed store, hash-verified

386 return ids
387
388 def walk(o: object) -> None:
389 if isinstance(o, dict):
390 sid = o.get("id")
391 if isinstance(sid, str) and ("type" in o):
392 ids.add(sid)
393 for v in o.values():
394 walk(v)
395 elif isinstance(o, list):
396 for v in o:
397 walk(v)
398
399 walk(data)
400 return ids

Callers 3

_schema_idsFunction · 0.70
_global_setting_idsFunction · 0.70
_metafield_defsFunction · 0.70

Calls 1

getMethod · 0.45

Tested by

no test coverage detected