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

Function assert_has_error

mypyc/test/test_ircheck.py:34–36  ·  view source on GitHub ↗
(fn: FuncIR, error: FnError)

Source from the content-addressed store, hash-verified

32
33
34def assert_has_error(fn: FuncIR, error: FnError) -> None:
35 errors = check_func_ir(fn)
36 assert errors == [error]
37
38
39def assert_no_errors(fn: FuncIR) -> None:

Calls 1

check_func_irFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…