MCPcopy Create free account
hub / github.com/URLab-Sim/UnrealRoboticsLab / walk

Function walk

Scripts/codegen/_codegen_checks.py:520–529  ·  view source on GitHub ↗
(node: Any)

Source from the content-addressed store, hash-verified

518 out: Set[str] = set()
519
520 def walk(node: Any) -> None:
521 if isinstance(node, dict):
522 for v in node.values():
523 if isinstance(v, list) and all(isinstance(s, str) for s in v):
524 out.update(v)
525 else:
526 walk(v)
527 elif isinstance(node, list):
528 for entry in node:
529 walk(entry)
530
531 walk(schema)
532 return out

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected