(text: str)
| 2186 | |
| 2187 | |
| 2188 | def _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 | |
| 2200 | def inject_docstring_text( |
no test coverage detected