MCPcopy Create free account
hub / github.com/pytest-dev/pytest / deindent

Function deindent

src/_pytest/_code/source.py:142–143  ·  view source on GitHub ↗
(lines: Iterable[str])

Source from the content-addressed store, hash-verified

140
141
142def deindent(lines: Iterable[str]) -> List[str]:
143 return textwrap.dedent("\n".join(lines)).splitlines()
144
145
146def get_statement_startend2(lineno: int, node: ast.AST) -> Tuple[int, Optional[int]]:

Callers 3

test_deindentFunction · 0.90
__init__Method · 0.85
deindentMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_deindentFunction · 0.72