MCPcopy Index your code
hub / github.com/python/cpython / fail

Function fail

Tools/clinic/libclinic/errors.py:67–72  ·  view source on GitHub ↗
(
    *args: object,
    filename: str | None = None,
    line_number: int | None = None,
)

Source from the content-addressed store, hash-verified

65 return warn_or_fail(*args, filename=filename, line_number=line_number, fail=False)
66
67def fail(
68 *args: object,
69 filename: str | None = None,
70 line_number: int | None = None,
71) -> NoReturn:
72 warn_or_fail(*args, filename=filename, line_number=line_number, fail=True)

Callers 15

test_scaffoldingMethod · 0.90
local_failMethod · 0.90
__post_init__Method · 0.90
clearMethod · 0.90
__init__Method · 0.90
__getattr__Method · 0.90
is_stop_lineMethod · 0.90
parse_clinic_blockMethod · 0.90
select_prototypesMethod · 0.90
__init__Method · 0.90
add_destinationMethod · 0.90
get_destinationMethod · 0.90

Calls 1

warn_or_failFunction · 0.85

Tested by 1

test_scaffoldingMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…