MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / show_diagnostic

Function show_diagnostic

tools/check_code_block_format.py:242–246  ·  view source on GitHub ↗
(file: Path, diagnostic: Diagnostic)

Source from the content-addressed store, hash-verified

240
241
242def show_diagnostic(file: Path, diagnostic: Diagnostic) -> None:
243 print(
244 f"{with_blue(str(file))}:{with_cyan(str(diagnostic.start))}: "
245 f"{with_red('error:')} {diagnostic.message}"
246 )
247
248
249def main():

Callers 1

mainFunction · 0.85

Calls 5

with_blueFunction · 0.85
strFunction · 0.85
with_cyanFunction · 0.85
with_redFunction · 0.85
printFunction · 0.50

Tested by

no test coverage detected