indent

On this page

indent#

indent(lines, num=4, initial_indent=True)#

Indent lines.

Parameters:
  • num (int) – Number of spaces to indent.

  • initial_indent (bool) – If False do not indent the first line.

  • lines (list[str])

Return type:

list[str]