MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / inline_doc

Function inline_doc

py/generate.py:122–129  ·  view source on GitHub ↗

Generate an inline doc, e.g. `#: This type is a ...`.

(description)

Source from the content-addressed store, hash-verified

120
121
122def 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
132def docstring(description):

Callers 2

generate_declMethod · 0.85
generate_declMethod · 0.85

Calls 2

escape_backticksFunction · 0.85
splitMethod · 0.80

Tested by

no test coverage detected