MCPcopy Create free account
hub / github.com/pytorch/executorch / print_wrapped

Function print_wrapped

scripts/pick_doc_commits.py:143–148  ·  view source on GitHub ↗

Print text wrapped to fit within the given width. Indents additional lines by four spaces.

(text: str, width: int = 80)

Source from the content-addressed store, hash-verified

141
142
143def print_wrapped(text: str, width: int = 80) -> None:
144 """Print text wrapped to fit within the given width.
145
146 Indents additional lines by four spaces.
147 """
148 print("\n ".join(textwrap.wrap(text, width=width - 4, break_on_hyphens=False)))
149
150
151def parse_args() -> argparse.Namespace:

Callers 1

mainFunction · 0.85

Calls 1

wrapMethod · 0.80

Tested by

no test coverage detected