MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _dedent_docstring

Function _dedent_docstring

lib/sqlalchemy/util/langhelpers.py:2188–2197  ·  view source on GitHub ↗
(text: str)

Source from the content-addressed store, hash-verified

2186
2187
2188def _dedent_docstring(text: str) -> str:
2189 split_text = text.split("\n", 1)
2190 if len(split_text) == 1:
2191 return text
2192 else:
2193 firstline, remaining = split_text
2194 if not firstline.startswith(" "):
2195 return firstline + "\n" + textwrap.dedent(remaining)
2196 else:
2197 return textwrap.dedent(text)
2198
2199
2200def inject_docstring_text(

Callers 1

inject_docstring_textFunction · 0.85

Calls 2

splitMethod · 0.80
startswithMethod · 0.45

Tested by

no test coverage detected