MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / read_file

Function read_file

tools/lint/python_stubs.py:31–35  ·  view source on GitHub ↗
(path: str)

Source from the content-addressed store, hash-verified

29
30
31def read_file(path: str) -> str:
32 if not os.path.exists(path):
33 return "(no log written)\n"
34 with open(path, "r", encoding="utf-8") as handle:
35 return handle.read()
36
37
38def report_section(summary: str, title: str, log_path: str) -> str:

Callers 1

report_sectionFunction · 0.85

Calls 3

openFunction · 0.50
existsMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected