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

Function _item_fail

mypy/test/data.py:90–92  ·  view source on GitHub ↗
(msg: str)

Source from the content-addressed store, hash-verified

88 for item in test_items[1:]:
89
90 def _item_fail(msg: str) -> NoReturn:
91 item_abs_line = case.line + item.line - 2
92 pytest.fail(f"{case.file}:{item_abs_line}: {msg}", pytrace=False)
93
94 if item.id in {"file", "fixture", "outfile", "outfile-re"}:
95 # Record an extra file needed for the test case.

Callers 1

parse_test_caseFunction · 0.85

Calls 1

failMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…