MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / _dedent_docstring

Function _dedent_docstring

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

Source from the content-addressed store, hash-verified

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

Callers 1

inject_docstring_textFunction · 0.85

Calls 1

startswithMethod · 0.45

Tested by

no test coverage detected