Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pytest-dev/pytest
/ deindent
Function
deindent
src/_pytest/_code/source.py:149–150 ·
view source on GitHub ↗
(lines: Iterable[str])
Source
from the content-addressed store, hash-verified
147
148
149
def
deindent(lines: Iterable[str]) -> list[str]:
150
return
textwrap.dedent(
"\n"
.join(lines)).splitlines()
151
152
153
def
get_statement_startend2(lineno: int, node: ast.AST) -> tuple[int, int | None]:
Callers
3
test_deindent
Function · 0.90
__init__
Method · 0.85
deindent
Method · 0.85
Calls
1
join
Method · 0.80
Tested by
1
test_deindent
Function · 0.72