MCPcopy Index your code
hub / github.com/python/cpython / render_docstring

Method render_docstring

Tools/clinic/libclinic/function.py:260–263  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

258 return f'argument {i}'
259
260 def render_docstring(self) -> str:
261 lines = [f" {self.name}"]
262 lines.extend(f" {line}" for line in self.docstring.split("\n"))
263 return "\n".join(lines).rstrip()
264
265
266ParamTuple = tuple["Parameter", ...]

Callers 1

Calls 4

extendMethod · 0.45
splitMethod · 0.45
rstripMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected