{ } Raw JSON

bundles / scipy 1.17.1 / scipy / _lib / doccer / indentcount_lines

function

scipy._lib.doccer:indentcount_lines

source: /scipy/_lib/doccer.py :225

Signature

def   indentcount_lines ( lines : Iterable[str] )  →  int

Summary

Minimum indent for all lines in line list

Parameters

lines : Iterable[str]

The lines to find the minimum indent of.

Returns

indent : int

The minimum indent.

Examples

lines = [' one', '  two', '   three']
indentcount_lines(lines)
lines = []
indentcount_lines(lines)
lines = [' one']
indentcount_lines(lines)
indentcount_lines(['    '])

Aliases

  • scipy.signal._filter_design.doccer.indentcount_lines