Wrap string in docstring quotes.
(s: str)
| 530 | |
| 531 | |
| 532 | def doc(s: str) -> str: |
| 533 | """Wrap string in docstring quotes.""" |
| 534 | if "\n" in s: |
| 535 | s = f"{s}\n" |
| 536 | elif s.endswith('"'): |
| 537 | s += " " |
| 538 | return f'"""{s}"""' |
| 539 | |
| 540 | |
| 541 | def quote(s: str) -> str: |
no outgoing calls