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

Method _write_docstring_and_traverse_body

Lib/_ast_unparse.py:196–201  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

194 return "".join(self._source)
195
196 def _write_docstring_and_traverse_body(self, node):
197 if (docstring := self.get_raw_docstring(node)):
198 self._write_docstring(docstring)
199 self.traverse(node.body[1:])
200 else:
201 self.traverse(node.body)
202
203 def visit_Module(self, node):
204 self._type_ignores = {

Callers 4

visit_ModuleMethod · 0.95
visit_InteractiveMethod · 0.95
visit_ClassDefMethod · 0.95
_function_helperMethod · 0.95

Calls 3

get_raw_docstringMethod · 0.95
_write_docstringMethod · 0.95
traverseMethod · 0.95

Tested by

no test coverage detected