MCPcopy Create free account
hub / github.com/pytest-dev/pytest / write_docstring

Function write_docstring

src/_pytest/python.py:1589–1591  ·  view source on GitHub ↗
(tw: TerminalWriter, doc: str, indent: str = "    ")

Source from the content-addressed store, hash-verified

1587
1588
1589def write_docstring(tw: TerminalWriter, doc: str, indent: str = " ") -> None:
1590 for line in doc.split("\n"):
1591 tw.line(indent + line)
1592
1593
1594class Function(PyobjMixin, nodes.Item):

Callers 2

write_fixtureFunction · 0.85
_showfixtures_mainFunction · 0.85

Calls 1

lineMethod · 0.45

Tested by

no test coverage detected