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

Function update_testcase_output

mypy/test/update_data.py:10–18  ·  view source on GitHub ↗
(
    testcase: DataDrivenTestCase, actual: list[str], *, incremental_step: int
)

Source from the content-addressed store, hash-verified

8
9
10def update_testcase_output(
11 testcase: DataDrivenTestCase, actual: list[str], *, incremental_step: int
12) -> None:
13 if testcase.xfail:
14 return
15 collector = testcase.parent
16 assert isinstance(collector, DataFileCollector)
17 for fix in _iter_fixes(testcase, actual, incremental_step=incremental_step):
18 collector.enqueue_fix(fix)
19
20
21def _iter_fixes(

Callers 1

run_case_onceMethod · 0.90

Calls 3

isinstanceFunction · 0.85
_iter_fixesFunction · 0.85
enqueue_fixMethod · 0.80

Tested by 1

run_case_onceMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…