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

Function docstring

py/generate.py:132–138  ·  view source on GitHub ↗

Generate a docstring from a description.

(description)

Source from the content-addressed store, hash-verified

130
131
132def docstring(description):
133 """Generate a docstring from a description."""
134 if not description:
135 return ""
136
137 description = escape_backticks(description)
138 return dedent("'''\n{}\n'''").format(description)
139
140
141def is_builtin(name):

Callers 5

generate_enum_codeMethod · 0.85
generate_class_codeMethod · 0.85
generate_codeMethod · 0.85
generate_codeMethod · 0.85

Calls 2

escape_backticksFunction · 0.85
formatMethod · 0.45

Tested by

no test coverage detected