MCPcopy Index your code
hub / github.com/RustPython/RustPython / main

Function main

crates/doc/generate.py:220–227  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

218
219
220def main():
221 docs = {
222 entry.key: entry.doc
223 for entry in find_doc_entries()
224 if entry.raw_doc is not None and isinstance(entry.raw_doc, str)
225 }
226 dumped = json.dumps(docs, sort_keys=True, indent=4)
227 OUTPUT_FILE.write_text(dumped)
228
229
230if __name__ == "__main__":

Callers 1

generate.pyFile · 0.70

Calls 4

find_doc_entriesFunction · 0.85
isinstanceFunction · 0.85
dumpsMethod · 0.45
write_textMethod · 0.45

Tested by

no test coverage detected