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

Function normalize_error_messages

mypy/test/helpers.py:323–329  ·  view source on GitHub ↗

Translate an array of error messages to use / as path separator.

(messages: list[str])

Source from the content-addressed store, hash-verified

321
322
323def normalize_error_messages(messages: list[str]) -> list[str]:
324 """Translate an array of error messages to use / as path separator."""
325
326 a = []
327 for m in messages:
328 a.append(m.replace(os.sep, "/"))
329 return a
330
331
332def retry_on_error(func: Callable[[], Any], max_wait: float = 1.0) -> None:

Callers 9

test_semanalFunction · 0.90
test_semanal_errorFunction · 0.90
run_caseMethod · 0.90
test_transformFunction · 0.90
run_case_onceMethod · 0.90
test_python_cmdlineFunction · 0.90
test_daemonFunction · 0.90
run_caseMethod · 0.90
check_test_output_filesFunction · 0.85

Calls 2

appendMethod · 0.80
replaceMethod · 0.80

Tested by 8

test_semanalFunction · 0.72
test_semanal_errorFunction · 0.72
run_caseMethod · 0.72
test_transformFunction · 0.72
run_case_onceMethod · 0.72
test_python_cmdlineFunction · 0.72
test_daemonFunction · 0.72
run_caseMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…