| 55 | |
| 56 | |
| 57 | def 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 | |
| 76 | def scan_file_for_docs( |