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

Function found_ignored_documented

Tools/check-c-api-docs/main.py:57–73  ·  view source on GitHub ↗
(singular: bool)

Source from the content-addressed store, hash-verified

55
56
57def found_ignored_documented(singular: bool) -> str:
58 some = "a" if singular else "some"
59 s = "" if singular else "s"
60 them = "it" if singular else "them"
61 were = "was" if singular else "were"
62 they = "it" if singular else "they"
63
64 return (
65 textwrap.dedent(
66 f"""
67 Found {some} C API{s} listed in Tools/c-api-docs-check/ignored_c_api.txt, but
68 {they} {were} found in the documentation. To fix this, remove {them} from
69 ignored_c_api.txt.
70 """
71 )
72 + MISTAKE
73 )
74
75
76def scan_file_for_docs(

Callers 1

mainFunction · 0.85

Calls 1

dedentMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…