MCPcopy Create free account
hub / github.com/NiklasRosenstein/pydoc-markdown / load_python_modules

Function load_python_modules

test/test_python_loader.py:30–36  ·  view source on GitHub ↗
(**kwargs)

Source from the content-addressed store, hash-verified

28 yield "package.a", "package/a.py"
29
30 def load_python_modules(**kwargs):
31 def generate():
32 nonlocal consumed
33 consumed = True
34 yield from (types.SimpleNamespace(name=name) for name, _ in kwargs["files"])
35
36 return generate()
37
38 monkeypatch.setattr(docspec_python, "discover", lambda path: iter(discovered))
39 monkeypatch.setattr(docspec_python, "iter_package_files", iter_package_files)

Callers

nothing calls this directly

Calls 1

generateFunction · 0.85

Tested by

no test coverage detected