MCPcopy Create free account
hub / github.com/python/cpython / warn_or_fail

Function warn_or_fail

Tools/clinic/libclinic/errors.py:31–36  ·  view source on GitHub ↗
(
    *args: object,
    fail: Literal[True],
    filename: str | None = None,
    line_number: int | None = None,
)

Source from the content-addressed store, hash-verified

29
30@overload
31def warn_or_fail(
32 *args: object,
33 fail: Literal[True],
34 filename: str | None = None,
35 line_number: int | None = None,
36) -> NoReturn: ...
37
38@overload
39def warn_or_fail(

Callers 2

warnFunction · 0.85
failFunction · 0.85

Calls 4

reportMethod · 0.95
strFunction · 0.85
ClinicErrorClass · 0.85
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…