MCPcopy Create free account
hub / github.com/ipython/ipython / find_last_indent

Function find_last_indent

IPython/core/inputtransformer2.py:722–726  ·  view source on GitHub ↗
(lines)

Source from the content-addressed store, hash-verified

720
721
722def find_last_indent(lines):
723 m = _indent_re.match(lines[-1])
724 if not m:
725 return 0
726 return len(m.group(0).replace('\t', ' '*4))

Callers 1

check_completeMethod · 0.85

Calls 1

groupMethod · 0.80

Tested by

no test coverage detected