MCPcopy Create free account
hub / github.com/NVIDIA/NeMo-Relay / _module_has_children

Function _module_has_children

scripts/docs/generate_python_library_reference.py:284–289  ·  view source on GitHub ↗
(module: ModuleDoc, modules: list[ModuleDoc])

Source from the content-addressed store, hash-verified

282
283
284def _module_has_children(module: ModuleDoc, modules: list[ModuleDoc]) -> bool:
285 parts = _module_parts(module)
286 return any(
287 other_parts[: len(parts)] == parts and len(other_parts) > len(parts)
288 for other_parts in (_module_parts(other) for other in modules)
289 )
290
291
292def _module_url(module: ModuleDoc) -> str:

Callers 1

_module_output_pathFunction · 0.85

Calls 1

_module_partsFunction · 0.85

Tested by

no test coverage detected