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

Function warn

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

Source from the content-addressed store, hash-verified

58
59
60def warn(
61 *args: object,
62 filename: str | None = None,
63 line_number: int | None = None,
64) -> None:
65 return warn_or_fail(*args, filename=filename, line_number=line_number, fail=False)
66
67def fail(
68 *args: object,

Callers 4

init_limited_capiMethod · 0.90
parseMethod · 0.90
docstring_appendMethod · 0.90
format_docstringMethod · 0.90

Calls 1

warn_or_failFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…