from pathlib import Path def load_func_body_from_file(filename: Path) -> str: with open(filename, "r") as infile: return infile.read().rstrip()