MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / _get_indentation

Function _get_indentation

src/sandbox_vm/tools/code/patch.py:161–163  ·  view source on GitHub ↗

Extract the leading whitespace from a line.

(line: str)

Source from the content-addressed store, hash-verified

159
160
161def _get_indentation(line: str) -> str:
162 """Extract the leading whitespace from a line."""
163 return line[: len(line) - len(line.lstrip())]
164
165
166def _strip_indentation(line: str) -> str:

Callers 3

_detect_indent_styleFunction · 0.85
_get_min_indentationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected