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

Method state_function_docstring

Tools/clinic/libclinic/dsl_parser.py:1329–1338  ·  view source on GitHub ↗
(self, line: str)

Source from the content-addressed store, hash-verified

1327
1328 # the final stanza of the DSL is the docstring.
1329 def state_function_docstring(self, line: str) -> None:
1330 assert self.function is not None
1331
1332 if self.group:
1333 fail(f"Function {self.function.name!r} has a ']' without a matching '['.")
1334
1335 if not self.valid_line(line):
1336 return
1337
1338 self.docstring_append(self.function, line)
1339
1340 @staticmethod
1341 def format_docstring_signature(

Callers

nothing calls this directly

Calls 3

valid_lineMethod · 0.95
docstring_appendMethod · 0.95
failFunction · 0.90

Tested by

no test coverage detected