MCPcopy Create free account
hub / github.com/Qinbf/groundmap / _count_sections

Function _count_sections

scripts/convert.py:230–231  ·  view source on GitHub ↗
(section: dict)

Source from the content-addressed store, hash-verified

228
229
230def _count_sections(section: dict) -> int:
231 return 1 + sum(_count_sections(c) for c in section.get("children", []))
232
233
234def parse_extensions(ext_str: str) -> set[str]:

Callers 1

convert_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected