MCPcopy Index your code
hub / github.com/python/mypy / parse_modules

Method parse_modules

mypy/test/teststubgen.py:928–933  ·  view source on GitHub ↗
(self, program_text: str)

Source from the content-addressed store, hash-verified

926 return options
927
928 def parse_modules(self, program_text: str) -> list[str]:
929 modules = re.search("# modules: (.*)$", program_text, flags=re.MULTILINE)
930 if modules:
931 return modules.group(1).split()
932 else:
933 return ["main"]
934
935 def add_file(self, path: str, result: list[str], header: bool) -> None:
936 if not os.path.exists(path):

Callers 1

run_case_innerMethod · 0.95

Calls 2

splitMethod · 0.80
groupMethod · 0.80

Tested by

no test coverage detected