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

Function adapt_output

mypy/test/testpythoneval.py:113–116  ·  view source on GitHub ↗

Translates the generic _program.py into the actual filename.

(testcase: DataDrivenTestCase)

Source from the content-addressed store, hash-verified

111
112
113def adapt_output(testcase: DataDrivenTestCase) -> list[str]:
114 """Translates the generic _program.py into the actual filename."""
115 program = "_" + testcase.name + ".py"
116 return [program_re.sub(program, line) for line in testcase.output]

Callers 1

test_python_evaluationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…