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

Method format_docstring_parameters

Tools/clinic/libclinic/dsl_parser.py:1513–1515  ·  view source on GitHub ↗

Create substitution text for {parameters}

(params: list[Parameter])

Source from the content-addressed store, hash-verified

1511
1512 @staticmethod
1513 def format_docstring_parameters(params: list[Parameter]) -> str:
1514 """Create substitution text for {parameters}"""
1515 return "".join(p.render_docstring() + "\n" for p in params if p.docstring)
1516
1517 def format_docstring(self) -> str:
1518 assert self.function is not None

Callers 1

format_docstringMethod · 0.95

Calls 2

render_docstringMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected