l = [1, 2, 3, ] def very_important_function(template: str, *variables, file: os.PathLike, debug: bool = False): """Applies `variables` to the `template` and writes to `file`.""" with open(file, 'w') as f: TracebackException.from_exception(exc, limit, lookup_lines, capture_locals) ...