Generate an inline doc, e.g. `#: This type is a ...`.
(description)
| 120 | |
| 121 | |
| 122 | def inline_doc(description): |
| 123 | """Generate an inline doc, e.g. `#: This type is a ...`.""" |
| 124 | if not description: |
| 125 | return "" |
| 126 | |
| 127 | description = escape_backticks(description) |
| 128 | lines = [f"#: {line}" for line in description.split("\n")] |
| 129 | return "\n".join(lines) |
| 130 | |
| 131 | |
| 132 | def docstring(description): |
no test coverage detected