Files
cs249r_book/mlsysim/add_docstrings.py
Vijay Janapa Reddi e7b86fcae1 docs(mlsysim): add docstrings to internal private functions for contributor clarity
- Ensured 100 percent docstring coverage for all internal private methods and functions across the codebase.
- Documented private optimization backends, plugin loaders, CLI formatting hooks, and provenance auditing utilities.
- Makes the codebase fully self-documenting for open-source contributors navigating the internals.
2026-05-25 19:58:34 -04:00

9 lines
263 B
Python

import ast
def add_docstrings_to_file(filepath):
with open(filepath, "r") as f:
source = f.read()
tree = ast.parse(source)
# This is a bit complex to do cleanly with just AST replacement, but we can do a targeted replace for the main types.