MCPcopy Create free account
hub / github.com/python/mypy / assert_target_equivalence

Function assert_target_equivalence

mypy/test/helpers.py:209–217  ·  view source on GitHub ↗

Compare actual and expected targets (order sensitive).

(name: str, expected: list[str], actual: list[str])

Source from the content-addressed store, hash-verified

207
208
209def assert_target_equivalence(name: str, expected: list[str], actual: list[str]) -> None:
210 """Compare actual and expected targets (order sensitive)."""
211 assert_string_arrays_equal(
212 expected,
213 actual,
214 ('Actual targets ({}) do not match expected targets ({}) for "[{} ...]"').format(
215 ", ".join(actual), ", ".join(expected), name
216 ),
217 )
218
219
220def show_align_message(s1: str, s2: str) -> None:

Callers 2

perform_stepMethod · 0.90
run_case_onceMethod · 0.90

Calls 3

formatMethod · 0.45
joinMethod · 0.45

Tested by 2

perform_stepMethod · 0.72
run_case_onceMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…