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

Function assert_equal

mypy/test/helpers.py:367–370  ·  view source on GitHub ↗
(a: object, b: object, fmt: str = "{} != {}")

Source from the content-addressed store, hash-verified

365
366
367def assert_equal(a: object, b: object, fmt: str = "{} != {}") -> None:
368 __tracebackhide__ = True
369 if a != b:
370 raise AssertionError(fmt.format(good_repr(a), good_repr(b)))
371
372
373def typename(t: type) -> str:

Callers 15

test_topsort_emptyMethod · 0.90
test_topsortMethod · 0.90
test_topsort_orphanMethod · 0.90
test_sccMethod · 0.90
test_order_asccMethod · 0.90
test_anyMethod · 0.90

Calls 2

good_reprFunction · 0.85
formatMethod · 0.45

Tested by 15

test_topsort_emptyMethod · 0.72
test_topsortMethod · 0.72
test_topsort_orphanMethod · 0.72
test_sccMethod · 0.72
test_order_asccMethod · 0.72
test_anyMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…