···5959 ]
6060 function_definitions.sort(key=lambda x: x.name)
61616262- for f in function_definitions:
6363- docstr = ast.get_docstring(f)
6262+ for function in function_definitions:
6363+ docstr = ast.get_docstring(function)
6464 if docstr is not None:
6565- args = ", ".join(a.arg for a in f.args.args[1:])
6565+ args = ", ".join(a.arg for a in function.args.args[1:])
6666 args = f"({args})"
67676868- docstr = "\n".join(f" {l}" for l in docstr.strip().splitlines())
6868+ docstr = "\n".join(f" {line}" for line in docstr.strip().splitlines())
69697070- print(f"{f.name}{args}\n\n:{docstr[1:]}\n")
7070+ print(f"{function.name}{args}\n\n:{docstr[1:]}\n")
717172727373if __name__ == "__main__":